diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-05-21 02:55:25 +0200 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-05-21 02:55:25 +0200 |
commit | e21d1614bb9006e69bf4bb2467b823aa12e64485 (patch) | |
tree | b20697a90e50c57a02d56f99dbf95300ca828325 /actionpack/test/controller | |
parent | 7f7fdc407a90c9ce75ce0a77bc0f631115514d2f (diff) | |
download | rails-e21d1614bb9006e69bf4bb2467b823aa12e64485.tar.gz rails-e21d1614bb9006e69bf4bb2467b823aa12e64485.tar.bz2 rails-e21d1614bb9006e69bf4bb2467b823aa12e64485.zip |
Made ActionController::Verification work with new_base
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/verification_test.rb | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/actionpack/test/controller/verification_test.rb b/actionpack/test/controller/verification_test.rb index 418a81baa8..85134a8264 100644 --- a/actionpack/test/controller/verification_test.rb +++ b/actionpack/test/controller/verification_test.rb @@ -103,17 +103,15 @@ class VerificationTest < ActionController::TestCase end protected - def rescue_action(e) raise end - def unconditional_redirect - redirect_to :action => "unguarded" - end + def unconditional_redirect + redirect_to :action => "unguarded" + end end - def setup - @controller = TestController.new - @request = ActionController::TestRequest.new - @response = ActionController::TestResponse.new + tests TestController + + setup do ActionController::Routing::Routes.add_named_route :foo, '/foo', :controller => 'test', :action => 'foo' end |