diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-01-31 14:02:14 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-01-31 14:02:18 +1100 |
commit | 0e1b58d3ff2f7629f444327ad7a2076d568abb40 (patch) | |
tree | 1b8070ceea278ad51fcec6eaecdc42a46054124e | |
parent | 13495a891581ac1864edaf226126e76e257d78d9 (diff) |
Simplify redirection test
-rw-r--r-- | spec/integration/search_request_spec.rb | 6 |
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 |