Sha256: cd592fe01f731c87437b9fd67a29304049429f3787cae9779ecfe031a3b38ae7
Contents?: true
Size: 797 Bytes
Versions: 4
Compression:
Stored size: 797 Bytes
Contents
require 'spec_helper' describe Fletcher, :vcr do describe :fetch, :vcr do it "should fetch playcom product" do item = described_class.fetch(Factory(:playcom).url) item.should_not be_nil item.name.should_not be_nil item.description.should_not be_nil end end end describe Fletcher::Model::Playcom, :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(:playcom).url) model.doc = nil 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
4 entries across 4 versions & 1 rubygems