Sha256: 1a9ab6b46bec9cc78c701939e0ce50a8ab0d3f06487d80d20f58376fc3fcc73a
Contents?: true
Size: 384 Bytes
Versions: 3
Compression:
Stored size: 384 Bytes
Contents
require_relative "../../spec_helper" require File.expand_path("lib/email_crawler") module EmailCrawler describe Scraper do let(:max_results) { 10 } subject { Scraper.new("google.de", max_results) } it "returns the top 10 URLs for a given search term/expression" do subject.search_result_urls_for("berlin tours").length.must_equal max_results end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
email_crawler-0.0.9 | spec/lib/email_crawler/scraper_spec.rb |
email_crawler-0.0.8 | spec/lib/email_crawler/scraper_spec.rb |
email_crawler-0.0.7 | spec/lib/email_crawler/scraper_spec.rb |