mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Serve actual content-type, not simplified
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user