Skip to content
Browse files

cleanup Mime::LOOKUP after registering image/gif

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 4154c65 commit c9147ebfa06023248b5e738f0928973ddc084da7 Neeraj Singh committed with josevalim Nov 22, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionpack/test/dispatch/mime_type_test.rb
View
1 actionpack/test/dispatch/mime_type_test.rb
@@ -71,6 +71,7 @@ class MimeTypeTest < ActiveSupport::TestCase
end
ensure
Mime.module_eval { remove_const :GIF if const_defined?(:GIF) }
+ Mime::LOOKUP.reject!{|key,_| key == 'image/gif'}
end
end

0 comments on commit c9147eb

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