Permalink
Browse files

fixed tests and removed debug output from company parser

  • Loading branch information...
1 parent 7dc1603 commit 833f49ee63c6e43a27b02526499573231457dc59 Ian Bishop committed Feb 1, 2012
Showing with 3 additions and 5 deletions.
  1. +0 −2 app/jobs/parsers/company.rb
  2. +3 −3 test/unit/post_test.rb
@@ -127,8 +127,6 @@ def backtrack_dict_url(url)
index = 0
prev_length = url.length
10.times do
- p words, index, prev_length
- sleep 2
if index == url.length
all_words << words
p words
View
@@ -1,13 +1,13 @@
require 'test_helper'
-require 'company_parser'
-require 'naiveclassifier'
+require 'parsers/company'
+require 'utils/classifier'
class PostTest < ActiveSupport::TestCase
def setup
classifier = Classifier.new
classifier.train("hiring", "lib/files/whoishiring.txt")
- @company_parser = CompanyParser.new(classifier)
+ @company_parser = Company.new(classifier)
end
def teardown

0 comments on commit 833f49e

Please sign in to comment.