spec/rews/item_spec.rb in rews-0.2.1 vs spec/rews/item_spec.rb in rews-0.2.2
- old
+ new
@@ -40,10 +40,10 @@
end
end
def mock_request(client, action, attrs, response)
# deal with different call arity
- mock(client).request(*[:wsdl, action, attrs].compact) do |*args|
+ mock(client).savon_client.mock!.request(*[:wsdl, action, attrs].compact) do |*args|
block = args.last # block is the last arg
ctx = RequestProxy.new()
ns = Object.new
mock(ctx.soap).namespaces{ns}