spec/rews/item_spec.rb in rews-0.5.4 vs spec/rews/item_spec.rb in rews-0.5.5

- old
+ new

@@ -196,11 +196,12 @@ iid.update_item(opts) end it "should generate the body xml and parse the response" do c = client - update=Object.new - stub(update).to_xml{"blahblah"} + # we test an array of updates, because rr stubbed objects bork on 1.9.2 with [*foo] + update=[Object.new] + stub(update[0]).to_xml{"blahblah"} msg = test_update_item(c, "AutoResolve", "SaveOnly", false, update) do |body| rsxml = Rsxml.to_rsxml(body, :ns=>{:wsdl=>"ews_wsdl", :t=>"ews_types"}, :style=>:xml) rsxml.should == ["wsdl:ItemChanges", ["t:ItemChange", ["t:ItemId", {"Id"=>"abc", "ChangeKey"=>"def"}],