Sha256: b3dd067bab4bf703c1c1022a1ced9615c399828b6101f0920d8e0fbf2fdf3381
Contents?: true
Size: 808 Bytes
Versions: 7
Compression:
Stored size: 808 Bytes
Contents
require 'spec_helper' describe Fletcher, :vcr do describe :fetch, :vcr do it "should fetch etsy product" do item = described_class.fetch(FactoryGirl.build(:etsy).url) item.should_not be_nil item.name.should_not be_nil item.description.should_not be_nil end end end describe Fletcher::Model::Etsy, :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(FactoryGirl.build(:etsy).url) model.name.should_not be_nil model.description.should_not be_nil model.price.should_not be_nil model.image.should_not be_nil end end end end
Version data entries
7 entries across 7 versions & 1 rubygems