Skip to content

Commit

Permalink
Make sure that setting the format with a symbol works too
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8261 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Dec 3, 2007
1 parent 3265487 commit 9663f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/test/controller/mime_responds_test.rb
Expand Up @@ -117,7 +117,7 @@ def all_types_with_layout

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" }
Expand Down

0 comments on commit 9663f99

Please sign in to comment.