Sha256: 89d4927715e8b75cbd69bfcea834b683a1a209d8cf1561db579c601dcfdf12d6

Contents?: true

Size: 612 Bytes

Versions: 4

Compression:

Stored size: 612 Bytes

Contents

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

describe Sniffles::Sniffers::Piwik do
  describe "#output", :vcr => { :cassette_name => "downlopedia_com" } do
    let(:piwik)  { described_class.new(page_body("http://www.downlopedia.com/")) }
    let(:blank)   { described_class.new(empty_html_doc) }
    
    context "piwik" do
      it { piwik.output[:found].should eq true }
    end

    context "no piwik" do
      it { blank.output[:found].should eq false }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sniffles-0.2.0 spec/sniffles/sniffers/analytics/piwik_spec.rb
sniffles-0.1.5 spec/sniffles/sniffers/analytics/piwik_spec.rb
sniffles-0.1.4 spec/sniffles/sniffers/analytics/piwik_spec.rb
sniffles-0.1.3 spec/sniffles/sniffers/analytics/piwik_spec.rb