mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Data folder in fixtures for files with no language
This commit is contained in:
		
							
								
								
									
										1
									
								
								test/fixtures/Data/bootstrap.css.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								test/fixtures/Data/bootstrap.css.map
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @@ -480,11 +480,15 @@ class TestBlob < Test::Unit::TestCase | ||||
|         next unless File.file?(filepath) | ||||
|  | ||||
|         blob = blob(filepath) | ||||
|         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 | ||||
|  | ||||
|   def test_minified_files_not_safe_to_highlight | ||||
|     assert !blob("JavaScript/jquery-1.6.1.min.js").safe_to_colorize? | ||||
|   | ||||
		Reference in New Issue
	
	Block a user