Sha256: a2e03c13f6d3116e18561fc8817f4fb9153a35af0dbe12e91a4a5518a8071d70
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 KB
Contents
require 'spec_helper' describe Fletcher, :vcr do describe :fetch, :vcr do end end describe Fletcher, :vcr do describe :fetch, :vcr do it "should fetch a thinkgeek product's information" do item = Fletcher.fetch(Factory(:thinkgeek).url) item.should_not be_nil item.image.should_not be_nil item.name.should_not be_nil item.description.should_not be_nil end it "should fetch a thinkgeek product with price range" do item = Fletcher.fetch(Factory(:thinkgeek_with_price_range).url) item.should_not be_nil item.image.should_not be_nil item.name.should_not be_nil item.description.should_not be_nil end end end describe Fletcher::Model::Thinkgeek, :vcr do describe "parse" do context "with valid data" do it "should return correct model info" do model = described_class.new model.parse Fletcher::Data.read(Factory(:thinkgeek).url) model.name.should_not be_nil model.price.should_not be_nil model.image.should_not be_nil end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fletcher-0.6.1 | spec/lib/fletcher/models/thinkgeek_spec.rb |
fletcher-0.6.0 | spec/lib/fletcher/models/thinkgeek_spec.rb |
fletcher-0.5.2 | spec/lib/fletcher/models/thinkgeek_spec.rb |