Commit graph

107 commits

Author SHA1 Message Date
Lars Henrik Mai
83be2d5db1 Fix 503 errors in tests from Elasticsearch due to cluster not being ready 2016-02-27 10:43:15 +01:00
Lars Mai
424cc0bf46 Merge pull request #2 from CodeforLeipzig/use-rspec
Use rspec
2016-02-24 19:54:59 +01:00
Lars Henrik Mai
9351e01fa4 Mark failing search controller spec pending 2016-02-24 19:17:12 +01:00
Lars Henrik Mai
72157e87d7 Disable guard notifier for now because !crossplatform 2016-02-24 19:16:48 +01:00
Lars Henrik Mai
3e27d8e82f Add database_cleaner gem 2016-02-24 11:59:52 +01:00
Lars Henrik Mai
80a67d094d Make url unique in paper factory 2016-02-24 11:59:37 +01:00
Lars Henrik Mai
9ae58e3a8d Add spec for search result pagination 2016-02-24 11:39:12 +01:00
Lars Henrik Mai
fda0d54717 Update kaminari pagination views 2016-02-24 10:58:15 +01:00
Lars Henrik Mai
e98655cbc2 Hide search score from items 2016-02-23 11:37:53 +01:00
Lars Henrik Mai
5b29fe761c Add feature spec for search result item 2016-02-23 11:37:39 +01:00
Lars Henrik Mai
25ceb50141 Rework search-results markup 2016-02-23 11:04:50 +01:00
Lars Henrik Mai
e0573b703f Add search results to feature spec 2016-02-20 07:48:01 +01:00
Lars Henrik Mai
aa4a6b6958 Generate unique reference in Paper factory 2016-02-20 07:47:43 +01:00
Lars Henrik Mai
9423847cb1 Add test_after_commit gem
Fixes the indexing of papers when running the tests since they are wrapped in a transaction. 

see http://www.justinweiss.com/articles/a-couple-callback-gotchas-and-a-rails-5-fix/
2016-02-20 07:46:37 +01:00
Lars Henrik Mai
d9f95f9e97 Move factories to spec dir and add helper module 2016-02-19 08:39:30 +01:00
Lars Henrik Mai
e351f12b3f Fix factories to actually return random data 2016-02-19 08:23:31 +01:00
Lars Henrik Mai
6dd6387b39 Initial feature spec for search page 2016-02-19 08:22:59 +01:00
Lars Henrik Mai
463d01f44f Fix label for filter_select inputs 2016-02-18 09:06:06 +01:00
Lars Henrik Mai
4e2c37f67f Fix html in layout 2016-02-18 08:48:28 +01:00
Lars Henrik Mai
a13e848176 Add guard file watcher 2016-02-18 08:41:45 +01:00
Lars Henrik Mai
2d85da354b Failing controller test for search result 2016-02-18 07:15:28 +01:00
Lars Henrik Mai
79e7ea61d3 Add rspec spring command 2016-02-18 07:14:53 +01:00
Lars Henrik Mai
85167bc563 Add more search controller specs 2016-02-17 21:20:17 +01:00
Lars Henrik Mai
8890354909 Simplify search_params in search_controller 2016-02-17 21:04:53 +01:00
Lars Henrik Mai
a82b1bd1b7 Fix deprecation warning in test environment 2016-02-17 20:56:26 +01:00
Lars Henrik Mai
9d1ab75015 Configure rspec for elasticsearch 2016-02-17 20:46:03 +01:00
Lars Henrik Mai
d790e97535 Create environment specific index name for papers
This will require re-indexing your development database
2016-02-17 20:45:29 +01:00
Lars Henrik Mai
8f4342919f initial controller spec 2016-02-17 08:59:52 +01:00
Lars Henrik Mai
2280e47bab first paper model spec 2016-02-17 08:36:16 +01:00
Lars Henrik Mai
88c7951160 configure shoulda-matchers 2016-02-17 08:35:59 +01:00
Lars Henrik Mai
3616eb07d9 upgrade shoulda-matchers gem 2016-02-17 08:29:58 +01:00
Lars Henrik Mai
0c2dcd9689 configure factory_girl for rspec 2016-02-17 08:29:12 +01:00
Lars Henrik Mai
c0b504039a add some default spec directories 2016-02-17 08:02:00 +01:00
Lars Henrik Mai
34d37d2183 add rspec config 2016-02-17 07:58:57 +01:00
Lars Henrik Mai
630b2fcd19 add rspec-rails gem 2016-02-17 07:55:37 +01:00
Lars Mai
b2ce70c08c Fix link address of dockerhost in README 2016-01-25 19:52:52 +01:00
Lars Mai
b3e869da31 Merge pull request #17 from ahx/add-docker
Add docker
2016-01-25 19:32:59 +01:00
Lars Henrik Mai
a3ac746ac0 Update README 2016-01-23 20:33:08 +01:00
Lars Henrik Mai
1b60c08e9f Add Dockerfile and docker-compose config 2016-01-23 20:33:02 +01:00
Lars Henrik Mai
0a702a18be Add rake task to rebuild paper index 2016-01-23 20:32:37 +01:00
Lars Henrik Mai
10de75f6f3 Configure Elasticsearch URL via ENV 2016-01-23 20:32:22 +01:00
Lars Henrik Mai
3d9c9f4a64 gitignore .vagrant dir 2016-01-23 20:31:40 +01:00
Lars Henrik Mai
acfb973efc Add simplecov for code coverage 2016-01-11 22:01:33 +01:00
Lars Henrik Mai
fce65636f7 Make PaperSearch persistent 2015-11-23 22:10:45 +01:00
Lars Henrik Mai
82c2e7e6b8 Add paper_searches table 2015-11-23 22:10:45 +01:00
Lars Henrik Mai
7d2314fb6d Use form builder for search form 2015-11-23 22:10:44 +01:00
Lars Henrik Mai
19616d215e Start using form builder for Paper Search Query 2015-11-23 22:10:44 +01:00
Lars Henrik Mai
f883df3347 Use PaperSearch definition in controller 2015-11-23 22:10:44 +01:00
Lars Henrik Mai
8929f07745 Add option for sort criteria to form 2015-11-23 22:10:44 +01:00
Lars Henrik Mai
c434dc3e85 Show search score in search results 2015-11-23 22:10:44 +01:00