Add a 'referer' attribute to TestRequest

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5748 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jamis Buck
2006-12-19 17:11:26 +00:00
parent 32bc10d7df
commit 33e48d5f97
2 changed files with 6 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
*SVN*
* Add a 'referer' attribute to TestRequest. [Jamis Buck]
* Ensure render :json => ... skips the layout. Closes #6808 [Josh Peek]
* Fix HTML::Node to output double quotes instead of single quotes. Closes #6845 [mitreandy]

View File

@@ -124,6 +124,10 @@ module ActionController #:nodoc:
@request_method, @accepts, @content_type = nil, nil, nil
end
def referer
@env["HTTP_REFERER"]
end
private
def initialize_containers
@env, @cookies = {}, {}