aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2009-05-21 02:55:25 +0200
committerPratik Naik <pratiknaik@gmail.com>2009-05-21 02:55:25 +0200
commite21d1614bb9006e69bf4bb2467b823aa12e64485 (patch)
treeb20697a90e50c57a02d56f99dbf95300ca828325 /actionpack/test
parent7f7fdc407a90c9ce75ce0a77bc0f631115514d2f (diff)
downloadrails-e21d1614bb9006e69bf4bb2467b823aa12e64485.tar.gz
rails-e21d1614bb9006e69bf4bb2467b823aa12e64485.tar.bz2
rails-e21d1614bb9006e69bf4bb2467b823aa12e64485.zip
Made ActionController::Verification work with new_base
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/verification_test.rb14
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