aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2012-07-23 13:21:30 -0500
committerJoshua Peek <josh@joshpeek.com>2012-07-23 13:21:30 -0500
commitb9779e805e16b7097a5883334f6ed712abb10314 (patch)
treea19100ece3b9ccb3f4cb1a0d9a92cd36c5e15952 /test
parent80e8ee7ce6b5c221feecbf490f83fadd0d7626ba (diff)
Move outdated check to samples
Diffstat (limited to 'test')
-rw-r--r--test/test_classifier.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/test_classifier.rb b/test/test_classifier.rb
index 90a7d23..890696f 100644
--- a/test/test_classifier.rb
+++ b/test/test_classifier.rb
@@ -2,7 +2,6 @@ require 'linguist/classifier'
require 'linguist/language'
require 'linguist/samples'
require 'linguist/tokenizer'
-require 'linguist/md5'
require 'test/unit'
@@ -18,11 +17,8 @@ class TestClassifier < Test::Unit::TestCase
end
def test_instance_freshness
- serialized = Linguist::MD5.hexdigest(Samples::DATA)
- latest = Linguist::MD5.hexdigest(Linguist::Samples.classifier.to_hash)
-
# Just warn, it shouldn't scare people off by breaking the build.
- if serialized != latest
+ if Samples.outdated?
warn "Classifier database is out of date. Run `bundle exec rake classifier`."
end
end