Serve actual content-type, not simplified

This commit is contained in:
Joshua Peek
2011-10-06 18:04:29 -04:00
parent 5842ba38f0
commit 8c135a9eff
4 changed files with 30 additions and 30 deletions

View File

@@ -54,9 +54,9 @@ class TestPathname < Test::Unit::TestCase
end
def test_mime_type
assert_equal 'application/ruby', Pathname.new("file.rb").mime_type
assert_equal 'application/x-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 'application/x-python', Pathname.new("itty.py").mime_type
assert_equal 'text/plain', Pathname.new("defun.kt").mime_type
end
end