aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-02-22 08:44:49 +1100
committerLouise Crow <louise.crow@gmail.com>2013-04-02 15:42:01 +0100
commit2bcf9eaa3e5b0e48ebc1a91de875481f63585622 (patch)
treeed4e906d07518c4c5f3756faaa7df51caaf39cf2
parent7106744372abce3c00dd326d4bc5d5ce5cac9d78 (diff)
Use full url in test for redirect to ensure in correct locale
-rw-r--r--spec/controllers/public_body_controller_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/public_body_controller_spec.rb b/spec/controllers/public_body_controller_spec.rb
index 013c56129..6bcd25b62 100644
--- a/spec/controllers/public_body_controller_spec.rb
+++ b/spec/controllers/public_body_controller_spec.rb
@@ -65,7 +65,7 @@ describe PublicBodyController, "when showing a body" do
it "should remember the filter (view) setting on redirecting" do
get :show, :show_locale => "es", :url_name => "tgq", :view => 'successful'
- response.should redirect_to show_public_body_successful_url(:url_name => "etgq")
+ response.should redirect_to 'http://test.host/es/body/etgq/successful'
end
it "should redirect to newest name if you use historic name of public body in URL" do