Sha256: 44fc56bef224aea072a69f4a8c2381b483f4077168c67427ddc9362f6afaff37
Contents?: true
Size: 475 Bytes
Versions: 3
Compression:
Stored size: 475 Bytes
Contents
require 'spec_helper' describe ProductSpy do describe '#parse' do it "returns nil if no configured host matches the url" do ProductSpy.parse('http://no.host/whatever').should be_nil end it "returns nil if no parser matches the url" do ProductSpy.parse('http://amazon.de/whatever').should be_nil end it "returns nil if no url is given" do ProductSpy.parse('').should be_nil ProductSpy.parse(nil).should be_nil end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
product_spy-0.0.6 | spec/product_spy_spec.rb |
product_spy-0.0.5 | spec/product_spy_spec.rb |
product_spy-0.0.4 | spec/product_spy_spec.rb |