Permalink
Browse files

Updated iphone_with_html_response_type to fail as it uses the new reg…

…ister_alias approach

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7625 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 89235ba commit 501244fee4045dd7a48b8753e9f54a060fdc743d @dhh dhh committed Sep 24, 2007
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/controller/mime_responds_test.rb
@@ -115,11 +115,11 @@ def all_types_with_layout
end
def iphone_with_html_response_type
- Mime::Type.register("text/iphone", :iphone)
+ Mime::Type.register_alias("text/html", :iphone)
respond_to do |type|
type.html { @type = "Firefox" }
- type.iphone { @type = "iPhone"; render :content_type => Mime::HTML }
+ type.iphone { @type = "iPhone" }
end
Mime.send :remove_const, :IPHONE

0 comments on commit 501244f

Please sign in to comment.