Skip to content
This repository
Browse code

No need to register again. As it's default now.

Removing gif from here because when it got unregister it start failing other places.
  • Loading branch information...
commit 8c1f62acda93d18728d8176d055c2f64edcf6e03 1 parent e3053ee
Arun Agrawal authored June 28, 2011
6  actionpack/test/dispatch/mime_type_test.rb
@@ -86,12 +86,12 @@ class MimeTypeTest < ActiveSupport::TestCase
86 86
 
87 87
   test "custom type" do
88 88
     begin
89  
-      Mime::Type.register("image/gif", :gif)
  89
+      Mime::Type.register("image/foo", :foo)
90 90
       assert_nothing_raised do
91  
-        assert_equal Mime::GIF, Mime::SET.last
  91
+        assert_equal Mime::FOO, Mime::SET.last
92 92
       end
93 93
     ensure
94  
-      Mime::Type.unregister(:gif)
  94
+      Mime::Type.unregister(:FOO)
95 95
     end
96 96
   end
97 97
 

0 notes on commit 8c1f62a

Please sign in to comment.
Something went wrong with that request. Please try again.