diff options
author | Arun Agrawal <arun@fromjaipur.com> | 2011-06-28 17:48:29 +0530 |
---|---|---|
committer | Arun Agrawal <arun@fromjaipur.com> | 2011-06-28 18:20:28 +0530 |
commit | 8c1f62acda93d18728d8176d055c2f64edcf6e03 (patch) | |
tree | 650149e5cab0ce0373d27d500639067bdf1b7309 /actionpack | |
parent | e3053ee753c3035e9d8337680212aba525c27376 (diff) | |
download | rails-8c1f62acda93d18728d8176d055c2f64edcf6e03.tar.gz rails-8c1f62acda93d18728d8176d055c2f64edcf6e03.tar.bz2 rails-8c1f62acda93d18728d8176d055c2f64edcf6e03.zip |
No need to register again. As it's default now.
Removing gif from here because when it got unregister it start failing other places.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/dispatch/mime_type_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/dispatch/mime_type_test.rb b/actionpack/test/dispatch/mime_type_test.rb index 3d958eee2c..851fb59d51 100644 --- a/actionpack/test/dispatch/mime_type_test.rb +++ b/actionpack/test/dispatch/mime_type_test.rb @@ -86,12 +86,12 @@ class MimeTypeTest < ActiveSupport::TestCase test "custom type" do begin - Mime::Type.register("image/gif", :gif) + Mime::Type.register("image/foo", :foo) assert_nothing_raised do - assert_equal Mime::GIF, Mime::SET.last + assert_equal Mime::FOO, Mime::SET.last end ensure - Mime::Type.unregister(:gif) + Mime::Type.unregister(:FOO) end end |