mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
Data folder in fixtures for files with no language
This commit is contained in:
1
test/fixtures/Data/bootstrap.css.map
vendored
Normal file
1
test/fixtures/Data/bootstrap.css.map
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -480,8 +480,12 @@ class TestBlob < Test::Unit::TestCase
|
|||||||
next unless File.file?(filepath)
|
next unless File.file?(filepath)
|
||||||
|
|
||||||
blob = blob(filepath)
|
blob = blob(filepath)
|
||||||
assert blob.language, "No language for #{filepath}"
|
if language == 'Data'
|
||||||
assert_equal language, blob.language.name, blob.name
|
assert blob.language.nil?, "A language was found for #{filepath}"
|
||||||
|
else
|
||||||
|
assert blob.language, "No language for #{filepath}"
|
||||||
|
assert_equal language, blob.language.name, blob.name
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user