aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/body_controller_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/controllers/body_controller_spec.rb')
-rw-r--r--spec/controllers/body_controller_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/controllers/body_controller_spec.rb b/spec/controllers/body_controller_spec.rb
index 947c1de1c..672042f9b 100644
--- a/spec/controllers/body_controller_spec.rb
+++ b/spec/controllers/body_controller_spec.rb
@@ -5,23 +5,23 @@ describe BodyController, "when showing a body" do
fixtures :public_bodies, :public_body_versions
it "should be successful" do
- get :show, :simple_short_name => "dfh"
+ get :show, :url_name => "dfh"
response.should be_success
end
it "should render with 'show' template" do
- get :show, :simple_short_name => "dfh"
+ get :show, :url_name => "dfh"
response.should render_template('show')
end
it "should assign the body" do
- get :show, :simple_short_name => "dfh"
+ get :show, :url_name => "dfh"
assigns[:public_bodies].should == [ public_bodies(:humpadink_public_body) ]
end
it "should redirect to newest name if you use historic name of public body in URL" do
- get :show, :simple_short_name => "hdink"
- response.should redirect_to(:controller => 'body', :action => 'show', :simple_short_name => "dfh")
+ get :show, :url_name => "hdink"
+ response.should redirect_to(:controller => 'body', :action => 'show', :url_name => "dfh")
end
# XXX test for 404s when don't give valid name