aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-01-31 14:02:14 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-01-31 14:02:18 +1100
commit0e1b58d3ff2f7629f444327ad7a2076d568abb40 (patch)
tree1b8070ceea278ad51fcec6eaecdc42a46054124e
parent13495a891581ac1864edaf226126e76e257d78d9 (diff)
Simplify redirection test
-rw-r--r--spec/integration/search_request_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/integration/search_request_spec.rb b/spec/integration/search_request_spec.rb
index c564032a6..23a62e97b 100644
--- a/spec/integration/search_request_spec.rb
+++ b/spec/integration/search_request_spec.rb
@@ -13,10 +13,8 @@ describe "When searching" do
end
it "should redirect requests with search in query string to URL-based page" do
- url = '/search/all?query=bob'
- request_via_redirect("post", url)
- response.request.url.should_not include(url)
- response.request.url.should include("/search/bob/all")
+ post '/search/all?query=bob'
+ response.should redirect_to "/en/search/bob/all"
end
it "should correctly execute simple search" do