Sha256: c1cb9cffd820431db4d46bcee5e60d762a7a1990aa22e52cc009b51066abc468

Contents?: true

Size: 682 Bytes

Versions: 4

Compression:

Stored size: 682 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Sniffles::Sniffers do
  describe "#use" do
    context "single sniffer", :vcr => { :cassette_name => "wordpress_com" } do
      let(:wordpress) { page_body("http://wordpress.com/") }
      
      it { subject.use(wordpress, :google_analytics).should include(:found) }
    end
  end
    
  describe "#list_all" do
    it  { subject.list_all.count.should eq SNIFFER_COUNT }
  end
  
  describe "#list_groups" do
    it { subject.list_groups.count.should eq SNIFFER_GROUP_COUNT }
  end
  
  describe "#list_all_by_group" do
    it { subject.list_all_by_group.count.should eq SNIFFER_GROUP_COUNT }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sniffles-0.1.5 spec/sniffles/sniffers_spec.rb
sniffles-0.1.4 spec/sniffles/sniffers_spec.rb
sniffles-0.1.3 spec/sniffles/sniffers_spec.rb
sniffles-0.1.2 spec/sniffles/sniffers_spec.rb