mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Merge branch 'master' of https://github.com/github/linguist
This commit is contained in:
		| @@ -1,6 +1,7 @@ | ||||
| require 'linguist/heuristics' | ||||
| require 'linguist/language' | ||||
| require 'linguist/samples' | ||||
| require 'linguist/file_blob' | ||||
|  | ||||
| require 'test/unit' | ||||
|  | ||||
| @@ -44,7 +45,8 @@ class TestHeuristcs < Test::Unit::TestCase | ||||
|   end | ||||
|  | ||||
|   def test_detect_still_works_if_nothing_matches | ||||
|     match = Language.detect("Hello.m", fixture("Objective-C/hello.m")) | ||||
|     blob = Linguist::FileBlob.new(File.join(samples_path, "Objective-C/hello.m")) | ||||
|     match = Language.detect(blob) | ||||
|     assert_equal Language["Objective-C"], match | ||||
|   end | ||||
|    | ||||
|   | ||||
		Reference in New Issue
	
	Block a user