diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-11-22 13:59:46 -0500 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-11-22 23:06:15 +0100 |
commit | 21fd93cedda9d96a81b06b96c541120a5da7a71a (patch) | |
tree | bd0a6d03163c40997d8eb599bb1129a1ee44dabc /actionpack/test | |
parent | 794b34306eea0c7e1e99f5741df16129e8e22b3f (diff) | |
download | rails-21fd93cedda9d96a81b06b96c541120a5da7a71a.tar.gz rails-21fd93cedda9d96a81b06b96c541120a5da7a71a.tar.bz2 rails-21fd93cedda9d96a81b06b96c541120a5da7a71a.zip |
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>
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/mime_type_test.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/actionpack/test/dispatch/mime_type_test.rb b/actionpack/test/dispatch/mime_type_test.rb index 3a7ab740f4..28e8d420d5 100644 --- a/actionpack/test/dispatch/mime_type_test.rb +++ b/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 |