aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2015-01-02 21:04:14 -0800
committerAman Gupta <aman@tmm1.net>2015-01-02 21:04:14 -0800
commitd22e2383fe7dc963af128130336264ba2dfccbeb (patch)
treecdff62f0decbee21c55c36290e3652c3a29c8577 /actionpack/test
parent98dbc5e3cc248859b8c881dbcd228f8ad0743f21 (diff)
downloadrails-d22e2383fe7dc963af128130336264ba2dfccbeb.tar.gz
rails-d22e2383fe7dc963af128130336264ba2dfccbeb.tar.bz2
rails-d22e2383fe7dc963af128130336264ba2dfccbeb.zip
parse stringified mime type
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/dispatch/mime_type_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/mime_type_test.rb b/actionpack/test/dispatch/mime_type_test.rb
index a1a7ceff03..1869325d21 100644
--- a/actionpack/test/dispatch/mime_type_test.rb
+++ b/actionpack/test/dispatch/mime_type_test.rb
@@ -7,7 +7,7 @@ class MimeTypeTest < ActiveSupport::TestCase
test "parse single" do
Mime::LOOKUP.keys.each do |mime_type|
unless mime_type == 'image/*'
- assert_equal [Mime::Type.lookup(mime_type)], Mime::Type.parse(mime_type)
+ assert_equal [Mime::Type.lookup(mime_type)], Mime::Type.parse(mime_type.to_s)
end
end
end