diff options
author | francis <francis> | 2008-02-27 12:09:03 +0000 |
---|---|---|
committer | francis <francis> | 2008-02-27 12:09:03 +0000 |
commit | 9d1ccab02460083797e7b5680dbb40c6f2fc23cd (patch) | |
tree | a55bf9f2f9466e6cdd0c54022fbfb1f70287c4d9 /spec/controllers/body_controller_spec.rb | |
parent | abc70d713ddbd2e337a0f419a268b964bed66832 (diff) |
Rename simple_short_name to url_name in routing
Diffstat (limited to 'spec/controllers/body_controller_spec.rb')
-rw-r--r-- | spec/controllers/body_controller_spec.rb | 10 |
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 |