Data folder in fixtures for files with no language

This commit is contained in:
Paul Chaignon
2014-12-04 19:14:44 -05:00
parent a1f26d64d5
commit 77444284e3
2 changed files with 7 additions and 2 deletions

View File

@@ -480,8 +480,12 @@ class TestBlob < Test::Unit::TestCase
next unless File.file?(filepath)
blob = blob(filepath)
assert blob.language, "No language for #{filepath}"
assert_equal language, blob.language.name, blob.name
if language == 'Data'
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