From 3004cc817794527fa44c727eea87e20b65c686ce Mon Sep 17 00:00:00 2001 From: Matthew Gerrior Date: Fri, 27 Jun 2014 17:27:41 -0400 Subject: Adds missing argument handling for ActionController::TestSession to allow testing controllers that use session#fetch with a default value. --- actionpack/lib/action_controller/test_case.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actionpack/lib') 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! -- cgit v1.2.3