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:
parent
794b34306e
commit
21fd93cedd
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue