mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Catching one more edge case
This commit is contained in:
@@ -278,6 +278,7 @@ class TestLanguage < Minitest::Test
|
||||
def test_doesnt_blow_up_with_blank_lookup
|
||||
assert_equal nil, Language.find_by_alias('')
|
||||
assert_equal nil, Language.find_by_name(nil)
|
||||
assert_equal nil, Language[""]
|
||||
end
|
||||
|
||||
def test_name
|
||||
|
||||
Reference in New Issue
Block a user