Sha256: 17b3e101b539d8237dc481508da7f2e1f1d45be0006b64a484306da95c2565e7
Contents?: true
Size: 642 Bytes
Versions: 4
Compression:
Stored size: 642 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper') require File.expand_path(File.dirname(__FILE__) + '/../../../../lib/sniffles/sniffers/analytics/kissmetrics') describe Sniffles::Sniffers::Kissmetrics do describe "#output", :vcr => { :cassette_name => "foursquare_com" } do let(:kissmetrics) { described_class.new(page_body("https://foursquare.com")) } let(:blank) { described_class.new(empty_html_doc) } context "kissmetrics" do it { kissmetrics.output[:found].should eq true } end context "no kissmetrics" do it { blank.output[:found].should eq false } end end end
Version data entries
4 entries across 4 versions & 1 rubygems