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