From b9779e805e16b7097a5883334f6ed712abb10314 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Mon, 23 Jul 2012 13:21:30 -0500 Subject: Move outdated check to samples --- test/test_classifier.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'test') 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 -- cgit v1.2.3