Move test fixtures to samples/

This commit is contained in:
Joshua Peek
2012-06-22 10:09:24 -05:00
parent b571c47a1c
commit 5521dd08a0
247 changed files with 13 additions and 14 deletions

View File

@@ -8,7 +8,7 @@ Rake::TestTask.new do |t|
end
file 'lib/linguist/classifier.yml' => Dir['test/fixtures/**/*'] do |f|
file 'lib/linguist/classifier.yml' => Dir['samples/**/*'] do |f|
require 'linguist/sample'
classifier = Linguist::Sample.classifier
File.open(f.name, 'w') { |io| YAML.dump(classifier, io) }

View File

@@ -5,7 +5,7 @@ module Linguist
# Model for accessing classifier training data.
class Sample
# 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.
#

View File

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

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