aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers
diff options
context:
space:
mode:
authorfrancis <francis>2009-06-22 12:54:44 +0000
committerfrancis <francis>2009-06-22 12:54:44 +0000
commit377fa46692a6d2bdd711494c75af48b65f292679 (patch)
tree63e57c9f7746f5f52e44276a01952ef818e02bc3 /spec/controllers
parent8b76e135946f0aca0ed1a79d258812915f814083 (diff)
Rename body controller to public_body for consistency.
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/public_body_controller_spec.rb (renamed from spec/controllers/body_controller_spec.rb)8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/controllers/body_controller_spec.rb b/spec/controllers/public_body_controller_spec.rb
index 6d108c686..aae72dad9 100644
--- a/spec/controllers/body_controller_spec.rb
+++ b/spec/controllers/public_body_controller_spec.rb
@@ -1,6 +1,6 @@
require File.dirname(__FILE__) + '/../spec_helper'
-describe BodyController, "when showing a body" do
+describe PublicBodyController, "when showing a body" do
integrate_views
fixtures :public_bodies, :public_body_versions
@@ -21,16 +21,16 @@ describe BodyController, "when showing a body" do
it "should redirect to newest name if you use historic name of public body in URL" do
get :show, :url_name => "hdink"
- response.should redirect_to(:controller => 'body', :action => 'show', :url_name => "dfh")
+ response.should redirect_to(:controller => 'public_body', :action => 'show', :url_name => "dfh")
end
it "should redirect to lower case name if you use mixed case name in URL" do
get :show, :url_name => "dFh"
- response.should redirect_to(:controller => 'body', :action => 'show', :url_name => "dfh")
+ response.should redirect_to(:controller => 'public_body', :action => 'show', :url_name => "dfh")
end
end
-describe BodyController, "when listing bodies" do
+describe PublicBodyController, "when listing bodies" do
integrate_views
fixtures :public_bodies, :public_body_versions