Sha256: 9bbbec4f3c40a9e228746cdb944b8f103379e5d4dcb9b37c17b5087d1ee2432c

Contents?: true

Size: 651 Bytes

Versions: 4

Compression:

Stored size: 651 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')
require File.expand_path(File.dirname(__FILE__) + '/../../../../lib/sniffles/sniffers/analytics/mixpanel')

describe Sniffles::Sniffers::Mixpanel do
  describe "#output" do    
    context "using mixpanel", :vcr => { :cassette_name => "squidoo_com" } do
      let(:mixpanel) { described_class.new(page_body("http://www.squidoo.com")) }
      
      it { mixpanel.output[:found].should eq true }
    end
    
    context "not using mixpanel" 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

Version Path
sniffles-0.1.5 spec/sniffles/sniffers/analytics/mixpanel_spec.rb
sniffles-0.1.4 spec/sniffles/sniffers/analytics/mixpanel_spec.rb
sniffles-0.1.3 spec/sniffles/sniffers/analytics/mixpanel_spec.rb
sniffles-0.1.2 spec/sniffles/sniffers/analytics/mixpanel_spec.rb