cleanup Mime::LOOKUP after registering image/gif
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user