Permalink
Browse files

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
  • Loading branch information...
1 parent e625d27 commit df9efebd94cce5021e809591c1b69d8ab41385da @seckar seckar committed Oct 16, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/test_process.rb
@@ -302,7 +302,7 @@ def process(action, parameters = nil, session = nil, flash = nil)
# 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)

0 comments on commit df9efeb

Please sign in to comment.