Skip to content

Commit

Permalink
cleanup Mime::LOOKUP after registering image/gif
Browse files Browse the repository at this point in the history
Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information
Neeraj Singh authored and josevalim committed Nov 22, 2010
1 parent 4154c65 commit c9147eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions actionpack/test/dispatch/mime_type_test.rb
Expand Up @@ -71,6 +71,7 @@ class MimeTypeTest < ActiveSupport::TestCase
end end
ensure ensure
Mime.module_eval { remove_const :GIF if const_defined?(:GIF) } Mime.module_eval { remove_const :GIF if const_defined?(:GIF) }
Mime::LOOKUP.reject!{|key,_| key == 'image/gif'}
end end
end end


Expand Down

0 comments on commit c9147eb

Please sign in to comment.