Lock to mime types 1.15

This commit is contained in:
Joshua Peek
2011-05-13 13:59:39 -05:00
parent 28e36b279d
commit 0f1a303c63
3 changed files with 8 additions and 8 deletions

View File

@@ -52,14 +52,14 @@ class TestPathname < Test::Unit::TestCase
end
def test_mime_type
assert_equal 'application/ruby', Pathname.new("file.rb").mime_type
assert_equal 'application/javascript', Pathname.new("file.js").mime_type
assert_equal 'application/python', Pathname.new("itty.py").mime_type
assert_equal 'text/plain; charset=utf-8', Pathname.new("file.rb").mime_type
assert_equal 'text/plain; charset=utf-8', Pathname.new("file.js").mime_type
assert_equal 'text/plain; charset=utf-8', Pathname.new("itty.py").mime_type
assert_equal 'text/plain; charset=utf-8', Pathname.new("defun.kt").mime_type
end
def test_media_type
assert_equal 'application', Pathname.new("file.js").media_type
assert_equal 'text', Pathname.new("file.js").media_type
assert_equal 'text', Pathname.new("file.txt").media_type
assert_equal 'text', Pathname.new("defun.kt").media_type
end