diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-01-20 13:31:46 +0000 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-01-20 13:31:46 +0000 |
commit | 8932a6d67c4386a378783b8a6a1ded4d93c41891 (patch) | |
tree | 778785348cb01160de20fc21e6205676144ed553 /spec/controllers/request_controller_spec.rb | |
parent | 742ea045560f91e472901bea3d932669f1c50d61 (diff) | |
parent | 35a2c007a65ff20785e02b738077fe52efcb90bf (diff) |
Merge branch 'wdtk' of github.com:sebbacon/alaveteli into wdtk
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
-rw-r--r-- | spec/controllers/request_controller_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb index 6a09516fd..6c6ccc76a 100644 --- a/spec/controllers/request_controller_spec.rb +++ b/spec/controllers/request_controller_spec.rb @@ -957,7 +957,11 @@ describe RequestController, "when classifying an information request" do session[:user_id] = @request_owner.id @dog_request = info_requests(:fancy_dog_request) InfoRequest.stub!(:find).and_return(@dog_request) - ActionController::Routing::Routes.filters.clear + @old_filters = ActionController::Routing::Routes.filters + ActionController::Routing::Routes.filters = RoutingFilter::Chain.new + end + after do + ActionController::Routing::Routes.filters = @old_filters end def request_url |