diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-11-22 11:35:24 -0500 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-11-22 23:06:14 +0100 |
commit | 4154c659feee47f246a162e2086bf07ad149ec6d (patch) | |
tree | 0bab541e01d378fca41ae2f52b32041646e72444 /actionpack/test | |
parent | 6f6e754bac4c78f657feb0ea119447546aa87197 (diff) | |
download | rails-4154c659feee47f246a162e2086bf07ad149ec6d.tar.gz rails-4154c659feee47f246a162e2086bf07ad149ec6d.tar.bz2 rails-4154c659feee47f246a162e2086bf07ad149ec6d.zip |
fix test
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/mime_type_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/dispatch/mime_type_test.rb b/actionpack/test/dispatch/mime_type_test.rb index 48755e6b5f..bea93adc19 100644 --- a/actionpack/test/dispatch/mime_type_test.rb +++ b/actionpack/test/dispatch/mime_type_test.rb @@ -6,7 +6,7 @@ class MimeTypeTest < ActiveSupport::TestCase test "parse single" do Mime::LOOKUP.keys.each do |mime_type| - unless image_type == 'image/*' + unless mime_type == 'image/*' assert_equal [Mime::Type.lookup(mime_type)], Mime::Type.parse(mime_type) end end @@ -14,7 +14,7 @@ class MimeTypeTest < ActiveSupport::TestCase test "parse text with trailing star star" do accept = "text/*" - expect = [Mime::JSON, Mime::XML, Mime::ICS, Mime::HTML, Mime::CSS, Mime::CSV, Mime::JS + expect = [Mime::JSON, Mime::XML, Mime::ICS, Mime::HTML, Mime::CSS, Mime::CSV, Mime::JS, Mime::YAML, Mime::TEXT] parsed = Mime::Type.parse(accept) assert_equal 9, parsed.size assert_equal expect, parsed @@ -22,7 +22,7 @@ class MimeTypeTest < ActiveSupport::TestCase test "parse application with trailing star star" do accept = "application/*" - expect = [Mime::HTML, Mime::JS, Mime::XML, Mime::YAML, Mime::ATOM, Mime::JSON, Mime::R + expect = [Mime::HTML, Mime::JS, Mime::XML, Mime::YAML, Mime::ATOM, Mime::JSON, Mime::RSS, Mime::PDF, Mime::URL_ENCODED_FORM] parsed = Mime::Type.parse(accept) assert_equal 9, parsed.size assert_equal expect, parsed |