spec/sniffles/sniffers/analytics/mixpanel_spec.rb in sniffles-0.1.5 vs spec/sniffles/sniffers/analytics/mixpanel_spec.rb in sniffles-0.2.0

- old
+ new

@@ -1,18 +1,18 @@ -require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper') -require File.expand_path(File.dirname(__FILE__) + '/../../../../lib/sniffles/sniffers/analytics/mixpanel') +require 'spec_helper' +require '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")) } - + describe "#output" do + context "using mixpanel", :vcr => { :cassette_name => "blog_mixpanel_com" } do + let(:mixpanel) { described_class.new(page_body("http://blog.mixpanel.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 \ No newline at end of file +end