Displaying 2 results from an estimated 2 matches for "viewall".
2006 Jun 23
0
SOAP Web Service Exception
...at the *invoke* is sending that gets the correct result:
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Body>
<n1:ViewAll xmlns:n1="urn:ActionWebService"
env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
</n1:ViewAll>
</env:Body>
</env:Envelope>
This is what the PHP client is sending that causes rails to blow up:
<SOAP-ENV:Envelope xmlns:SOAP-EN...
2008 May 03
5
Need some help in reducing my repetions in tests with Mocha
...with expectations like so:
it "includes a token in the parameters" do
http = mock()
http.stubs(:use_ssl=)
http.expects(:get).with { |url|
url.split("?",2).last =~ /token=#{@token}/
}.returns(good_response)
Net::HTTP.stubs(:new).returns(http)
@base.query("viewall")
end
But the problem is, all my expectations basically feature the same lines of code (from http = mock() to Net::HTTP stubs) with only the "with" block changing. But because it is the with block changing, I''m not sure how to create a method which will insert my changing...