diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-12-03 19:49:22 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-12-03 19:49:22 +0000 |
commit | 9663f9952a4e5fb0698409b33a07c5fdd4206cd7 (patch) | |
tree | 5d6b4d355ba9ca0c57ba1e11167d54829c6a5ee5 | |
parent | 326548770d694fbc5dc4cccc3a293a2d4eabe0b0 (diff) | |
download | rails-9663f9952a4e5fb0698409b33a07c5fdd4206cd7.tar.gz rails-9663f9952a4e5fb0698409b33a07c5fdd4206cd7.tar.bz2 rails-9663f9952a4e5fb0698409b33a07c5fdd4206cd7.zip |
Make sure that setting the format with a symbol works too
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8261 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | actionpack/test/controller/mime_responds_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/controller/mime_responds_test.rb b/actionpack/test/controller/mime_responds_test.rb index 4c48d4cdec..f121dd9f8b 100644 --- a/actionpack/test/controller/mime_responds_test.rb +++ b/actionpack/test/controller/mime_responds_test.rb @@ -117,7 +117,7 @@ class RespondToController < ActionController::Base def iphone_with_html_response_type Mime::Type.register_alias("text/html", :iphone) - request.format = "iphone" if request.env["HTTP_ACCEPT"] == "text/iphone" + request.format = :iphone if request.env["HTTP_ACCEPT"] == "text/iphone" respond_to do |type| type.html { @type = "Firefox" } |