step back on classifier for now

This commit is contained in:
Kyle Drake 2016-01-15 20:20:16 -08:00
parent 3ef075b24b
commit a37586bad4
5 changed files with 8 additions and 11 deletions

View file

@ -332,9 +332,10 @@ describe 'site_files' do
describe 'classification' do
before do
$trainer.instance_variable_get('@db').redis.flushall
puts "TODO FINISH CLASSIFIER"
#$trainer.instance_variable_get('@db').redis.flushall
end
=begin
it 'trains files' do
upload 'files[]' => Rack::Test::UploadedFile.new('./tests/files/classifier/ham.html', 'text/html')
upload 'files[]' => Rack::Test::UploadedFile.new('./tests/files/classifier/spam.html', 'text/html')
@ -348,6 +349,7 @@ describe 'site_files' do
@site.classify('spam.html').must_equal 'spam'
@site.classify('phishing.html').must_equal 'phishing'
end
=end
end
end
end