aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/abstract_unit.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/actionpack/test/abstract_unit.rb b/actionpack/test/abstract_unit.rb
index 1a61139dfe..39ae8cf899 100644
--- a/actionpack/test/abstract_unit.rb
+++ b/actionpack/test/abstract_unit.rb
@@ -124,16 +124,10 @@ class ActionDispatch::IntegrationTest < ActiveSupport::TestCase
class NullController
def initialize(controller_name)
@controller = controller_name
- @action = nil
end
- def action(action_name)
- @action = action_name
- self
- end
-
- def call(env)
- [200, {'Content-Type' => 'text/html'}, ["#{@controller}##{@action}"]]
+ def dispatch(action, req)
+ [200, {'Content-Type' => 'text/html'}, ["#{@controller}##{action}"]]
end
end