Sha256: d1515bf07f67732c9850b83e69045764a6977760cca54922dcb606a1bcd93408
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.node("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.2 | spec/integration/france_spec.rb |
sucker-1.0.0.beta.1 | spec/integration/france_spec.rb |