Permalink
Browse files

fix test

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 6f6e754 commit 4154c659feee47f246a162e2086bf07ad149ec6d Neeraj Singh committed with josevalim Nov 22, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/test/dispatch/mime_type_test.rb
@@ -6,23 +6,23 @@ 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
end
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
end
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

0 comments on commit 4154c65

Please sign in to comment.