aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/admin_public_body_controller_spec.rb
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-01-04 12:00:43 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-01-04 12:00:43 +1100
commit5b35eaa1e976b824d7f55786f05854fa7aff9d69 (patch)
tree5aa8120df05211bd27b50c8783ae04ad1d61e9ec /spec/controllers/admin_public_body_controller_spec.rb
parent48974263f1b94374f392f2338b17e72cb8dc9ae7 (diff)
Get rid of resetting of ActionController::Routing::Routes.filters
Diffstat (limited to 'spec/controllers/admin_public_body_controller_spec.rb')
-rw-r--r--spec/controllers/admin_public_body_controller_spec.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/spec/controllers/admin_public_body_controller_spec.rb b/spec/controllers/admin_public_body_controller_spec.rb
index c1d3f5014..0fdc20338 100644
--- a/spec/controllers/admin_public_body_controller_spec.rb
+++ b/spec/controllers/admin_public_body_controller_spec.rb
@@ -3,15 +3,6 @@ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe AdminPublicBodyController, "when administering public bodies" do
render_views
- before do
- @old_filters = ActionController::Routing::Routes.filters
- ActionController::Routing::Routes.filters = RoutingFilter::Chain.new
- end
-
- after do
- ActionController::Routing::Routes.filters = @old_filters
- end
-
it "shows the index page" do
get :index
end
@@ -327,15 +318,6 @@ end
describe AdminPublicBodyController, "when creating public bodies with i18n" do
render_views
- before do
- @old_filters = ActionController::Routing::Routes.filters
- ActionController::Routing::Routes.filters = RoutingFilter::Chain.new
- end
-
- after do
- ActionController::Routing::Routes.filters = @old_filters
- end
-
it "creates a new public body in one locale" do
n = PublicBody.count
post :create, { :public_body => { :name => "New Quango", :short_name => "", :tag_string => "blah", :request_email => 'newquango@localhost', :last_edit_comment => 'From test code' } }