method
included
v2.1.0 -
Show latest stable
- Class:
ActionController::TestProcess
included(base)public
No documentation available.
# File actionpack/lib/action_controller/test_process.rb, line 360
def self.included(base)
# execute the request simulating a specific HTTP method and set/volley the response
%w( get post put delete head ).each do |method|
base.class_eval "def \#{method}(action, parameters = nil, session = nil, flash = nil)\[email protected]['REQUEST_METHOD'] = \"\#{method.upcase}\" if defined?(@request)\nprocess(action, parameters, session, flash)\nend\n", __FILE__, __LINE__
end
end