Sha256: e9e4a755e21f346f20b916b2746cc760109703cab365bbe0bc4970f39525ca00
Contents?: true
Size: 910 Bytes
Versions: 7
Compression:
Stored size: 910 Bytes
Contents
require 'spec_helper' describe Fletcher, :vcr do describe :fetch, :vcr do # Force use of ebay cassette since auctions always end it "should fetch ebay product", :vcr => { :cassette_name => "ebay_fetch" } do item = described_class.fetch(FactoryGirl.build(:ebay).url) item.should_not be_nil item.name.should_not be_nil end end end describe Fletcher::Model::Ebay, :vcr => { :cassette_name => "ebay_model" } do describe "parse" do context "with valid data" do # Diable Realtime Test, too inconsistent it "should return correct model info" do model = described_class.new model.parse Fletcher::Data.read(FactoryGirl.build(:ebay).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
7 entries across 7 versions & 1 rubygems