Sha256: 0aba1342e309518d208eb04aa942f1b4e54118529f11b768b657a6be2220f5c3
Contents?: true
Size: 552 Bytes
Versions: 2
Compression:
Stored size: 552 Bytes
Contents
require 'helper' class TestSynopsis < Test::Unit::TestCase should "respond to the method synopsis" do assert Synopsis.respond_to?(:synopsis) end should "get the meta tags when applicable" do desc = Synopsis.synopsis('http://searchenginewatch.com/2167931') assert desc.include?('This tutorial explains how') end should "scrape google when the meta tags are not available" do desc = Synopsis.synopsis('http://www.bing.com') assert desc.include?('rganizes the answers you need so you can') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
synopsis-0.0.3 | test/test_synopsis.rb |
synopsis-0.0.1 | test/test_synopsis.rb |