Sha256: 159912e4ce1498c3c4ffbb27d6581f97ac1067489abe3948a1aa6f903f12c6e3
Contents?: true
Size: 921 Bytes
Versions: 2
Compression:
Stored size: 921 Bytes
Contents
# encoding: utf-8 require "spec_helper" module Sucker describe "A French lookup" do use_vcr_cassette "integration/france", :record => :new_episodes let(:item) do worker = Sucker.new( :locale => "fr", :key => amazon["key"], :secret => amazon["secret"]) worker << { "Operation" => "ItemLookup", "IdType" => "ASIN", "Condition" => "All", "MerchantId" => "All", "ResponseGroup" => ["ItemAttributes", "OfferFull"], "ItemId" => "2070119874" } worker.get.find("Item").first end it "returns an item" do item.should be_an_instance_of Hash end it "includes requested response groups" do item["ItemAttributes"].should be_an_instance_of Hash item["Offers"].should be_an_instance_of Hash item["ItemAttributes"]["Binding"].should eql "Broché" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sucker-1.0.0.beta.4 | spec/integration/france_spec.rb |
sucker-1.0.0.beta.3 | spec/integration/france_spec.rb |