diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-06-02 04:29:34 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-06-02 04:29:34 +0000 |
commit | 5e998d1ea07f227f436c64b2ee748ec18d6f5456 (patch) | |
tree | d4966152b4971ff53743c45fc9df7cbfdbcdc52c /actionpack/test | |
parent | 5240d7a84b2c4919cbc9f6d0d95c45b6b75227ae (diff) | |
download | rails-5e998d1ea07f227f436c64b2ee748ec18d6f5456.tar.gz rails-5e998d1ea07f227f436c64b2ee748ec18d6f5456.tar.bz2 rails-5e998d1ea07f227f436c64b2ee748ec18d6f5456.zip |
Make new mime types first class [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4407 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/mime_type_test.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/test/controller/mime_type_test.rb b/actionpack/test/controller/mime_type_test.rb index 436251b0f9..65acbbf36e 100644 --- a/actionpack/test/controller/mime_type_test.rb +++ b/actionpack/test/controller/mime_type_test.rb @@ -24,7 +24,10 @@ class MimeTypeTest < Test::Unit::TestCase def test_custom_type Mime::Type.register("image/gif", :gif) - assert_nothing_raised { Mime::GIF } + assert_nothing_raised do + Mime::GIF + assert_equal Mime::GIF, Mime::SET.last + end Mime.send :remove_const, :GIF end end
\ No newline at end of file |