Sha256: e7ce285265b133e90de557221444873e23c416c66808f41093b4edf4b7f8fe78
Contents?: true
Size: 850 Bytes
Versions: 2
Compression:
Stored size: 850 Bytes
Contents
require 'spec_helper' require 'helpers/uri' shared_examples_for "has Sponsored Links" do include Helpers it "should have ads" do @links.length.should_not == 0 end it "should have titles" do @links.each_title do |title| title.should_not be_nil end end it "should have non-empty titles" do @links.each_title do |title| title.length.should_not == 0 end end it "should have URLs" do @links.each_url do |url| url.should_not be_nil end end it "should have valid URLs" do @links.each_url do |url| uri_should_be_valid(url) end end it "should have direct URLs" do @links.each_direct_url do |url| url.should_not be_nil end end it "should have valid direct URLs" do @links.each_direct_url do |url| uri_should_be_valid(url) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gscraper-0.4.0 | spec/has_sponsored_links_examples.rb |
gscraper-0.3.0 | spec/has_sponsored_links_examples.rb |