Sha256: c7cc39c647b1be8af6851f291f1cf29b5effefa97e53e5ed9e228a965c06f6d8
Contents?: true
Size: 677 Bytes
Versions: 4
Compression:
Stored size: 677 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper') require File.expand_path(File.dirname(__FILE__) + '/../../../../lib/sniffles/sniffers/cms/prestashop') describe Sniffles::Sniffers::Prestashop do describe "#output" do context "prestashop", :vcr => { :cassette_name => "demo-store_prestashop_com" } do let(:prestashop) { described_class.new(page_body("http://demo-store.prestashop.com/en/")) } it { prestashop.output[:found].should eq true } end context "not prestashop" do let(:blank) { described_class.new(empty_html_doc) } it { blank.output[:found].should eq false } end end end
Version data entries
4 entries across 4 versions & 1 rubygems