diff options
author | Jamis Buck <jamis@37signals.com> | 2005-07-31 12:16:21 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-07-31 12:16:21 +0000 |
commit | 08ebab5d20527d6dd6600445fc5ec280d502596f (patch) | |
tree | 3ba3b69baf8333dac30eb30e6cbf08e76dd130f0 /actionpack/lib/action_controller/test_process.rb | |
parent | 020ed6fa1fa5f73e5af88e3c9cdff09293e76789 (diff) | |
download | rails-08ebab5d20527d6dd6600445fc5ec280d502596f.tar.gz rails-08ebab5d20527d6dd6600445fc5ec280d502596f.tar.bz2 rails-08ebab5d20527d6dd6600445fc5ec280d502596f.zip |
Make sure assigns are built for every request when testing #1866
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1961 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/test_process.rb')
-rw-r--r-- | actionpack/lib/action_controller/test_process.rb | 9 |
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: |