Skip to content

Commit

Permalink
added parameters to the client#call spec
Browse files Browse the repository at this point in the history
  • Loading branch information
rubiii committed Jan 5, 2013
1 parent d4aac8b commit f78f0ba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/savon/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@
wsdl = Wasabi::Document.new('http://example.com')
operation = Savon::Operation.new(:authenticate, wsdl, Savon::GlobalOptions.new)
operation.expects(:call).with(locals).returns(soap_response)
Savon::Operation.expects(:create).returns(operation)

Savon::Operation.expects(:create).with(
:authenticate,
instance_of(Wasabi::Document),
instance_of(Savon::GlobalOptions)
).returns(operation)

response = new_client.call(:authenticate, locals)
expect(response).to eq(soap_response)
Expand Down

0 comments on commit f78f0ba

Please sign in to comment.