Sha256: 69d232b339f3585ed9d713272d1137c1d740ed82f162bc82ee63bf04653ccfdd
Contents?: true
Size: 596 Bytes
Versions: 1
Compression:
Stored size: 596 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper' class TermExtractionTest < Test::Unit::TestCase should 'return correct terms from Yahoo!' do yahoo = TermExtraction::Yahoo.new yahoo.stubs(:remote_xml).returns(read_xml_fixture('yahoo')) assert_equal yahoo.terms, ['gears of war', 'gears'] end should 'return correct terms from Zemanta' do zemanta = TermExtraction::Zemanta.new zemanta.stubs(:remote_xml).returns(read_xml_fixture('zemanta')) assert_equal zemanta.terms, ['Apple', 'IMac', 'Rumor', 'Hardware', 'Nvidia', 'Macintosh', 'Desktops', 'AllInOne'] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alexrabarts-term_extraction-0.1.0 | test/term_extraction_test.rb |