Merge pull request #2341 from github/api-changes

Move Linguist::Language.detect to Linguist.detect
This commit is contained in:
Arfon Smith
2016-03-16 21:15:50 -06:00
5 changed files with 85 additions and 41 deletions

View File

@@ -36,7 +36,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