spec/integration/japan_spec.rb in sucker-0.6.6 vs spec/integration/japan_spec.rb in sucker-0.7.0
- old
+ new
@@ -17,10 +17,10 @@
end
context "single item" do
before do
@worker << { "ItemId" => "482224816X" }
- @item = @worker.get.to_h["ItemLookupResponse"]["Items"]["Item"]
+ @item = @worker.get.to_h("Item").first
end
it "returns an array of items" do
@item.should be_an_instance_of Hash
end