Move Linguist::Language.detect to Linguist.detect

This commit is contained in:
Brandon Keepers
2015-04-17 14:56:08 +12:00
parent 745ce14d47
commit 924fddf698
5 changed files with 85 additions and 41 deletions

View File

@@ -40,7 +40,7 @@ class TestHeuristcs < Minitest::Test
def test_detect_still_works_if_nothing_matches
blob = Linguist::FileBlob.new(File.join(samples_path, "Objective-C/hello.m"))
match = Language.detect(blob)
match = Linguist.detect(blob)
assert_equal Language["Objective-C"], match
end