spec/lib/fletcher/models/amazon_spec.rb in fletcher-0.5.0 vs spec/lib/fletcher/models/amazon_spec.rb in fletcher-0.5.1

- old
+ new

@@ -1,6 +1,17 @@ require 'spec_helper' +describe Fletcher, :vcr do + describe :fetch, :vcr do + it "should fetch amazon product" do + item = described_class.fetch(Factory(:amazon).url) + item.should_not be_nil + item.name.should_not be_nil + item.description.should_not be_nil + end + end +end + describe Fletcher::Model::Amazon do describe "parse", :vcr do context "with valid data" do it "should return correct model info" do model = described_class.new