Permalink
Browse files

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>
  • Loading branch information...
1 parent 794b343 commit 21fd93cedda9d96a81b06b96c541120a5da7a71a Neeraj Singh committed with josevalim Nov 22, 2010
Showing with 0 additions and 2 deletions.
  1. +0 −2 actionpack/test/dispatch/mime_type_test.rb
View
2 actionpack/test/dispatch/mime_type_test.rb
@@ -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

0 comments on commit 21fd93c

Please sign in to comment.