Sha256: ed6960c6154d339e620cf2814990d33d0af73b85946e894611294fd87ad95981
Contents?: true
Size: 811 Bytes
Versions: 4
Compression:
Stored size: 811 Bytes
Contents
require 'spec_helper' shared_examples_for "has Sponsored Links" do 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
4 entries across 4 versions & 1 rubygems