Sha256: b3a5133daec21b9516111e2259f55d2d2832cfe4f85e0d1cf4e848bca6b7ad5a

Contents?: true

Size: 644 Bytes

Versions: 3

Compression:

Stored size: 644 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')
require File.expand_path(File.dirname(__FILE__) + '/../../../../lib/sniffles/sniffers/cms/shopify')

describe Sniffles::Sniffers::Shopify do
  describe "#output" do    
    context "shopify", :vcr => { :cassette_name => "shop_angrybirds_com" } do
      let(:shopify)   { described_class.new(page_body("http://shop.angrybirds.com/")) }
      
      it { shopify.output[:found].should eq true }
    end
    
    context "not shopify" do
      let(:blank)   { described_class.new(empty_html_doc) }
      
      it { blank.output[:found].should eq false }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sniffles-0.1.5 spec/sniffles/sniffers/cms/shopify_spec.rb
sniffles-0.1.4 spec/sniffles/sniffers/cms/shopify_spec.rb
sniffles-0.1.3 spec/sniffles/sniffers/cms/shopify_spec.rb