diff options
author | Michael Koziarski <michael@koziarski.com> | 2007-09-07 03:45:54 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2007-09-07 03:45:54 +0000 |
commit | fe31f0e066ef8969366e692d21127a60a246d5a0 (patch) | |
tree | 608251106d3a893bd131519ea50b065cef49fe2f /actionpack/test | |
parent | 68d685056a6a8a6fcb7f922c161d26a54c770213 (diff) | |
download | rails-fe31f0e066ef8969366e692d21127a60a246d5a0.tar.gz rails-fe31f0e066ef8969366e692d21127a60a246d5a0.tar.bz2 rails-fe31f0e066ef8969366e692d21127a60a246d5a0.zip |
Add a user_agent to TestRequest
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7416 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/request_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/test/controller/request_test.rb b/actionpack/test/controller/request_test.rb index 19ae17c171..1bb01ffd00 100644 --- a/actionpack/test/controller/request_test.rb +++ b/actionpack/test/controller/request_test.rb @@ -351,6 +351,10 @@ class RequestTest < Test::Unit::TestCase @request.env["CONTENT_TYPE"] = "application/xml; charset=UTF-8" assert_equal Mime::XML, @request.content_type end + + def test_user_agent + assert_not_nil @request.user_agent + end protected def set_request_method_to(method) |