aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-04-19 11:04:38 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-04-19 11:04:38 +0000
commit5462358cd397583f3b4cfcdf2933b80dbc48d353 (patch)
tree76a1da3d0859755c0b1af53c031d6689940739df /actionpack/lib/action_controller
parent0dd497853a5375caa217237e067346ad2b3d89c2 (diff)
downloadrails-5462358cd397583f3b4cfcdf2933b80dbc48d353.tar.gz
rails-5462358cd397583f3b4cfcdf2933b80dbc48d353.tar.bz2
rails-5462358cd397583f3b4cfcdf2933b80dbc48d353.zip
Fixed that :get, :post, and the others should take a flash array as the third argument just like process #1144 [rails@cogentdude.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1227 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/test_process.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb
index a68887e8cc..f7dc275c2f 100644
--- a/actionpack/lib/action_controller/test_process.rb
+++ b/actionpack/lib/action_controller/test_process.rb
@@ -258,9 +258,9 @@ module Test
# execute the request simulating a specific http method and set/volley the response
%w( get post put delete head ).each do |method|
class_eval <<-EOV
- def #{method}(action, parameters = nil, session = nil)
+ def #{method}(action, parameters = nil, session = nil, flash = nil)
@request.env['REQUEST_METHOD'] = "#{method.upcase}"
- process(action, parameters, session)
+ process(action, parameters, session, flash)
end
EOV
end