Sha256: 98bdcf31c0db7e39371df13b01173bd34a9c8c8f576fea28c8c371a75269550a
Contents?: true
Size: 636 Bytes
Versions: 4
Compression:
Stored size: 636 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper') require File.expand_path(File.dirname(__FILE__) + '/../../../../lib/sniffles/sniffers/analytics/quantcast') describe Sniffles::Sniffers::Quantcast do describe "#output" do context "quantcast", :vcr => { :cassette_name => 'squidoo_com' } do let(:quantcast) { described_class.new(page_body("http://www.squidoo.com")) } it { quantcast.output[:found].should eq true } end context "no quantcast" do let(:blank) { described_class.new(empty_html_doc) } it { blank.output[:found].should eq false } end end end
Version data entries
4 entries across 4 versions & 1 rubygems