cleanup Mime::LOOKUP after registering image/gif

Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
Neeraj Singh 2010-11-22 11:36:36 -05:00 committed by José Valim
parent 4154c659fe
commit c9147ebfa0

@ -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