aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--actionpack/CHANGELOG2
-rw-r--r--actionpack/lib/action_controller/test_process.rb4
2 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index d7dc6153b7..32cc8e0316 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -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]
diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb
index 4011e6cf33..49a8a4a0e3 100644
--- a/actionpack/lib/action_controller/test_process.rb
+++ b/actionpack/lib/action_controller/test_process.rb
@@ -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 = {}, {}