aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/test_process.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb
index 999a551808..581b08d659 100644
--- a/actionpack/lib/action_controller/test_process.rb
+++ b/actionpack/lib/action_controller/test_process.rb
@@ -11,6 +11,15 @@ module ActionController #:nodoc:
def process_test(request) #:nodoc:
process(request, TestResponse.new)
end
+
+ def process_with_test(*args)
+ returning process_without_test(*args) do
+ add_variables_to_assigns
+ end
+ end
+
+ alias_method :process_without_test, :process
+ alias_method :process, :process_with_test
end
class TestRequest < AbstractRequest #:nodoc: