mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Test nil mime lookup
This commit is contained in:
@@ -6,6 +6,8 @@ class TestMime < Test::Unit::TestCase
|
||||
include Linguist
|
||||
|
||||
def test_lookup
|
||||
assert_equal 'text/plain; charset=utf-8', Mime.lookup(nil)
|
||||
|
||||
assert_equal 'text/plain; charset=utf-8', Mime.lookup(".rb")
|
||||
assert_equal 'text/plain; charset=utf-8', Mime.lookup(".js")
|
||||
assert_equal 'text/plain; charset=utf-8', Mime.lookup(".py")
|
||||
|
||||
Reference in New Issue
Block a user