mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Move test fixtures to samples/
This commit is contained in:
		
							
								
								
									
										2
									
								
								Rakefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Rakefile
									
									
									
									
									
								
							| @@ -8,7 +8,7 @@ Rake::TestTask.new do |t| | |||||||
| end | end | ||||||
|  |  | ||||||
|  |  | ||||||
| file 'lib/linguist/classifier.yml' => Dir['test/fixtures/**/*'] do |f| | file 'lib/linguist/classifier.yml' => Dir['samples/**/*'] do |f| | ||||||
|   require 'linguist/sample' |   require 'linguist/sample' | ||||||
|   classifier = Linguist::Sample.classifier |   classifier = Linguist::Sample.classifier | ||||||
|   File.open(f.name, 'w') { |io| YAML.dump(classifier, io) } |   File.open(f.name, 'w') { |io| YAML.dump(classifier, io) } | ||||||
|   | |||||||
| @@ -5,7 +5,7 @@ module Linguist | |||||||
|   # Model for accessing classifier training data. |   # Model for accessing classifier training data. | ||||||
|   class Sample |   class Sample | ||||||
|     # Samples live in test/ for now, we'll eventually move them out |     # Samples live in test/ for now, we'll eventually move them out | ||||||
|     PATH = File.expand_path("../../../test/fixtures", __FILE__) |     PATH = File.expand_path("../../../samples", __FILE__) | ||||||
|  |  | ||||||
|     # Public: Iterate over each Sample. |     # Public: Iterate over each Sample. | ||||||
|     # |     # | ||||||
|   | |||||||
| Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB | 
| Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB | 
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user