mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Depend classifier db on fixtures
This commit is contained in:
2
Rakefile
2
Rakefile
@@ -8,7 +8,7 @@ Rake::TestTask.new do |t|
|
||||
end
|
||||
|
||||
|
||||
file 'lib/linguist/classifier.yml' do |f|
|
||||
file 'lib/linguist/classifier.yml' => Dir['test/fixtures/**/*'] do |f|
|
||||
require 'linguist/sample'
|
||||
classifier = Linguist::Sample.classifier
|
||||
File.open(f.name, 'w') { |io| YAML.dump(classifier, io) }
|
||||
|
||||
Reference in New Issue
Block a user