aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorNicholas Seckar <nseckar@gmail.com>2005-10-16 00:14:51 +0000
committerNicholas Seckar <nseckar@gmail.com>2005-10-16 00:14:51 +0000
commitdf9efebd94cce5021e809591c1b69d8ab41385da (patch)
tree8ba8359581c7790373df863118f78e5d516ad0d7 /actionpack
parente625d276334bbfd1f0bc4359be2eea9fb75ae36a (diff)
downloadrails-df9efebd94cce5021e809591c1b69d8ab41385da.tar.gz
rails-df9efebd94cce5021e809591c1b69d8ab41385da.tar.bz2
rails-df9efebd94cce5021e809591c1b69d8ab41385da.zip
Add line and file information to test process' get, post, etc methods
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2631 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/test_process.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb
index 40d46661d8..5c9a198582 100644
--- a/actionpack/lib/action_controller/test_process.rb
+++ b/actionpack/lib/action_controller/test_process.rb
@@ -302,7 +302,7 @@ 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
+ class_eval <<-EOV, __FILE__, __LINE__
def #{method}(action, parameters = nil, session = nil, flash = nil)
@request.env['REQUEST_METHOD'] = "#{method.upcase}" if @request
process(action, parameters, session, flash)