From 2aef9fddf8b4487a05638ea3341dfd65ceb229ef Mon Sep 17 00:00:00 2001 From: Gaurish Sharma Date: Sun, 20 Apr 2014 23:54:39 +0530 Subject: Document ActionController::TestCase::Behavior::ClassMethods.process [ci skip] --- actionpack/lib/action_controller/test_case.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'actionpack') diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index b904dedccd..a79c139b4d 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -550,6 +550,18 @@ module ActionController end end + # Simulate a HTTP request to action with the given parameters and set/volley the response. + # + # - +action+: The controller action to call. + # - +http_method+: http method, defaults to +GET+ + # - +session+: A hash of parameters to store in the session. This may be +nil+. + # - +flash+: A hash of parameters to store in the flash. This may be +nil+. + # + # You can also simulate GET, POST, PATCH, PUT, DELETE, and HEAD requests with + # +post+, +patch+, +put+, +delete+, and +head+. + # + # Note that the request method is not verified. The different methods are + # available to make the tests more expressive. def process(action, http_method = 'GET', *args) check_required_ivars -- cgit v1.2.3