mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
Move test fixtures to samples/
This commit is contained in:
@@ -8,12 +8,12 @@ require 'test/unit'
|
||||
class TestClassifier < Test::Unit::TestCase
|
||||
include Linguist
|
||||
|
||||
def fixtures_path
|
||||
File.expand_path("../fixtures", __FILE__)
|
||||
def samples_path
|
||||
File.expand_path("../../samples", __FILE__)
|
||||
end
|
||||
|
||||
def fixture(name)
|
||||
File.read(File.join(fixtures_path, name))
|
||||
File.read(File.join(samples_path, name))
|
||||
end
|
||||
|
||||
def test_instance_freshness
|
||||
|
||||
Reference in New Issue
Block a user