spec/integration/japan_spec.rb in sucker-0.2.2 vs spec/integration/japan_spec.rb in sucker-0.3.0

- old
+ new

@@ -1,9 +1,9 @@ require "spec_helper" module Sucker - describe "Japan" do + describe "A Japanese request" do before do @worker = Sucker.new( :locale => "jp", :key => amazon["key"], :secret => amazon["secret"]) @@ -14,10 +14,10 @@ end context "single item" do before do @worker << { "ItemId" => "0816614024" } - @item = @worker.get["ItemLookupResponse"]["Items"]["Item"] + @item = @worker.get.to_h["ItemLookupResponse"]["Items"]["Item"] end it "returns an item" do @item.should be_an_instance_of Hash end