class ActionDispatch::IntegrationTest::StubDispatcher

Stub Rails dispatcher so it does not get controller references and simply return the controlleraction as Rack::Body.

Protected Instance Methods

controller_reference(controller_param) click to toggle source
# File test/abstract_unit.rb, line 123
def controller_reference(controller_param)
  controller_param
end
dispatch(controller, action, env) click to toggle source
# File test/abstract_unit.rb, line 127
def dispatch(controller, action, env)
  [200, {'Content-Type' => 'text/html'}, ["#{controller}##{action}"]]
end