diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-05-01 11:39:55 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-05-01 11:39:55 +0100 |
commit | ef7be8c296a39d403193cd1ff6a9e0826a8790ac (patch) | |
tree | 9fdbe64a178db6425496a1238ddb30422f7a1695 /spec/controllers/request_controller_spec.rb | |
parent | 34dcf7cceece25cd15c325118cf8b158c980db0f (diff) |
The test "should work" relies on the xapian index existing - make sure this is true for all tests in this group.
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
-rw-r--r-- | spec/controllers/request_controller_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb index 4161f1118..20420b96d 100644 --- a/spec/controllers/request_controller_spec.rb +++ b/spec/controllers/request_controller_spec.rb @@ -2261,6 +2261,10 @@ end describe RequestController, "when showing similar requests" do render_views + before do + get_fixtures_xapian_index + end + it "should work" do get :similar, :url_title => info_requests(:badger_request).url_title response.should render_template("request/similar") @@ -2268,8 +2272,6 @@ describe RequestController, "when showing similar requests" do end it "should show similar requests" do - get_fixtures_xapian_index - badger_request = info_requests(:badger_request) get :similar, :url_title => badger_request.url_title |