1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

make test more resilient to future changes by not

testing the count and not testing the internal value
of the registered mime type.

Ideally all mime type registration should be cleaned up
in teardown.

Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
Neeraj Singh 2010-11-22 13:59:46 -05:00 committed by José Valim
parent 794b34306e
commit 21fd93cedd

View file

@ -31,9 +31,7 @@ class MimeTypeTest < ActiveSupport::TestCase
test "parse image with trailing star" do
accept = "image/*"
parsed = Mime::Type.parse(accept)
assert_equal 2, parsed.size
assert parsed.include?(Mime::PNG)
assert_equal 'image/*', parsed[1].instance_variable_get('@string')
end
test "parse without q" do