spec/lib/fletcher/models/steam_spec.rb in fletcher-0.6.0 vs spec/lib/fletcher/models/steam_spec.rb in fletcher-0.6.1

- old
+ new

@@ -1,10 +1,13 @@ require 'spec_helper' describe Fletcher, :vcr do describe :fetch, :vcr do - + it "should return correct model info" do + product = Fletcher.fetch Factory(:steam).url + puts product.image.inspect + end end end describe Fletcher::Model::Steam, :vcr do describe "parse" do @@ -16,11 +19,12 @@ model.description = '' model.name.should_not be_nil model.description.should_not be_nil model.description.class.should == String model.price.should_not be_nil - model.image.should_not be_nil model.images.should_not be_empty + model.image.should_not be_nil + model.image.src.should_not be_nil end end end end \ No newline at end of file