diff options
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/mime_responds_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/mime_responds_test.rb b/actionpack/test/controller/mime_responds_test.rb index d2c70ed477..526b7792be 100644 --- a/actionpack/test/controller/mime_responds_test.rb +++ b/actionpack/test/controller/mime_responds_test.rb @@ -115,11 +115,11 @@ class RespondToController < ActionController::Base 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 |