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