diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-01-07 13:23:10 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-01-07 14:49:05 -0800 |
commit | 35fa00731329120fa1d0c2a9d66af6813203195a (patch) | |
tree | 32457ad68703af36d8fa2ee74bb12232428ebbf2 /actionpack/test/controller/capture_test.rb | |
parent | 0f9e65b71f9af30dac17689e81f4353e9fcac5b6 (diff) | |
download | rails-35fa00731329120fa1d0c2a9d66af6813203195a.tar.gz rails-35fa00731329120fa1d0c2a9d66af6813203195a.tar.bz2 rails-35fa00731329120fa1d0c2a9d66af6813203195a.zip |
Include process methods in ActionController::TestCase only. No need to alias_method_chain :process either.
Diffstat (limited to 'actionpack/test/controller/capture_test.rb')
-rw-r--r-- | actionpack/test/controller/capture_test.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/actionpack/test/controller/capture_test.rb b/actionpack/test/controller/capture_test.rb index 5ded6a5d26..6dfa0995eb 100644 --- a/actionpack/test/controller/capture_test.rb +++ b/actionpack/test/controller/capture_test.rb @@ -23,17 +23,14 @@ class CaptureController < ActionController::Base def rescue_action(e) raise end end -class CaptureTest < Test::Unit::TestCase - def setup - @controller = CaptureController.new +class CaptureTest < ActionController::TestCase + tests CaptureController + def setup # enable a logger so that (e.g.) the benchmarking stuff runs, so we can get # a more accurate simulation of what happens in "real life". @controller.logger = Logger.new(nil) - @request = ActionController::TestRequest.new - @response = ActionController::TestResponse.new - @request.host = "www.nextangle.com" end |