diff options
author | Gaurish Sharma <contact@gaurishsharma.com> | 2014-04-20 23:54:39 +0530 |
---|---|---|
committer | Gaurish Sharma <contact@gaurishsharma.com> | 2014-04-20 23:54:39 +0530 |
commit | 2aef9fddf8b4487a05638ea3341dfd65ceb229ef (patch) | |
tree | 788c9689924f02dc78909232172c030b60cd8e68 /actionpack | |
parent | 9b1c077c91f09b64b8105f31fdf5240cd12c2e16 (diff) | |
download | rails-2aef9fddf8b4487a05638ea3341dfd65ceb229ef.tar.gz rails-2aef9fddf8b4487a05638ea3341dfd65ceb229ef.tar.bz2 rails-2aef9fddf8b4487a05638ea3341dfd65ceb229ef.zip |
Document ActionController::TestCase::Behavior::ClassMethods.process
[ci skip]
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/test_case.rb | 12 |
1 files changed, 12 insertions, 0 deletions
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 |