Sha256: 03a31f22699c436a097c978116281585f1028d1f5e0356ea02255038b6a6ee80

Contents?: true

Size: 620 Bytes

Versions: 3

Compression:

Stored size: 620 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')
require File.expand_path(File.dirname(__FILE__) + '/../../../../lib/sniffles/sniffers/advertising/gumgum')

describe Sniffles::Sniffers::Gumgum do
  describe "#output", :vcr => { :cassette_name => "tmz_com" } do    
    context "gumgum" do
      let(:gumgum)  { described_class.new(page_body("http://www.tmz.com")) }
      
      it { gumgum.output[:found].should eq true }
    end

    context "no gumgum" do
      let(:blank)   { described_class.new(empty_html_doc) }
      
      it { blank.output[:found].should eq false }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sniffles-0.1.5 spec/sniffles/sniffers/advertising/gumgum_spec.rb
sniffles-0.1.4 spec/sniffles/sniffers/advertising/gumgum_spec.rb
sniffles-0.1.3 spec/sniffles/sniffers/advertising/gumgum_spec.rb