diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-02-14 20:46:10 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-02-14 20:46:10 +0000 |
commit | 7d037e56eea7c67acac5a8afca2ba9a33cb6d2c2 (patch) | |
tree | 35ca8c465fa2560d5807501e219ca513581e762f /spec/controllers/public_body_controller_spec.rb | |
parent | 3fab39a758d1320747f8f04a5fef2e0370eac17b (diff) | |
parent | 87beeb16db6e76bb28cc13e5382a81a8103c5cc8 (diff) |
Merge remote-tracking branch 'openaustralia_github/fix-issue-789' into develop
Diffstat (limited to 'spec/controllers/public_body_controller_spec.rb')
-rw-r--r-- | spec/controllers/public_body_controller_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/controllers/public_body_controller_spec.rb b/spec/controllers/public_body_controller_spec.rb index 29ece18cb..5f4012737 100644 --- a/spec/controllers/public_body_controller_spec.rb +++ b/spec/controllers/public_body_controller_spec.rb @@ -67,6 +67,11 @@ describe PublicBodyController, "when showing a body" do ActionController::Routing::Routes.filters = old_filters end + 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") + end + it "should redirect to newest name if you use historic name of public body in URL" do get :show, :url_name => "hdink", :view => 'all' response.should redirect_to(:controller => 'public_body', :action => 'show', :url_name => "dfh") |