diff options
author | Matthew Gerrior <mgerrior@greanetree.com> | 2014-06-27 17:27:41 -0400 |
---|---|---|
committer | Matthew Gerrior <matthew@challengepost.com> | 2015-08-06 15:29:45 -0400 |
commit | 3004cc817794527fa44c727eea87e20b65c686ce (patch) | |
tree | 1415f6a237f8849edfe44d3d38f2a26eb883469a /actionpack/lib | |
parent | 3908a6d8675605f570f07d8be2f9224c1c47f0e3 (diff) | |
download | rails-3004cc817794527fa44c727eea87e20b65c686ce.tar.gz rails-3004cc817794527fa44c727eea87e20b65c686ce.tar.bz2 rails-3004cc817794527fa44c727eea87e20b65c686ce.zip |
Adds missing argument handling for ActionController::TestSession to
allow testing controllers that use session#fetch with a default value.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/test_case.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index f922e134f7..9dab72c5f0 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -171,6 +171,10 @@ module ActionController clear end + def fetch(*args, &block) + @data.fetch(*args, &block) + end + private def load! |