Sample returns simple hash objects

This commit is contained in:
Joshua Peek
2012-07-20 16:17:37 -05:00
parent ee0ffa0516
commit eb2c07e511
3 changed files with 19 additions and 45 deletions

View File

@@ -276,8 +276,9 @@ class TestBlob < Test::Unit::TestCase
def test_language
Sample.each do |sample|
blob = blob(sample.path)
assert_equal sample.language, blob.language, blob.name
blob = blob(sample[:path])
language = Linguist::Language.find_by_alias(sample[:language])
assert_equal language, blob.language, blob.name
end
end