Sha256: 70a52e3fe35a9ef20e39694ec4dd3f70f5fdd2a50baedad63e526d637d33f3d2
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Sniffles do it "should have a version" do subject.const_defined?("VERSION").should be true end describe "#sniff" do before(:all) do VCR.use_cassette("wordpress") do @body = Typhoeus::Request.get("http://www.wordpress.com/", :follow_location => true).body end @wp = Sniffles.sniff(@body) end it "should identify WordPress" do @wp.should include(:wordpress => true) end it "should identify jQuery" do @wp.should include(:jquery => true) end it "should identify Quantcast" do @wp.should include(:quantcast => true) end describe "#mixpanel" do before(:all) do VCR.use_cassette("squidoo") do @body = Typhoeus::Request.get("http://www.squidoo.com/", :follow_location => true).body end @squid = Sniffles.sniff(@body) end it "should identify MixPanel" do @squid.should include(:mixpanel => true) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sniffles-0.0.3 | spec/sniffles_spec.rb |
sniffles-0.0.2 | spec/sniffles_spec.rb |