Sha256: b201ea00a475738e3a02a57239acecec6ce3b56478ec388c2bc12ed091db52b1
Contents?: true
Size: 1.27 KB
Versions: 4
Compression:
Stored size: 1.27 KB
Contents
require "fakeweb" FakeWeb.allow_net_connect = false # Some WSDL and SOAP request. FakeWeb.register_uri :get, EndpointHelper.wsdl_endpoint, :body => UserFixture.user_wsdl FakeWeb.register_uri :post, EndpointHelper.soap_endpoint, :body => UserFixture.user_response # WSDL and SOAP request with multiple "//return" nodes. FakeWeb.register_uri :get, EndpointHelper.wsdl_endpoint(:multiple), :body => UserFixture.user_wsdl FakeWeb.register_uri :post, EndpointHelper.soap_endpoint(:multiple), :body => UserFixture.multiple_user_response # WSDL and SOAP request with a Savon::SOAPFault. FakeWeb.register_uri :get, EndpointHelper.wsdl_endpoint(:soap_fault), :body => UserFixture.user_wsdl FakeWeb.register_uri :post, EndpointHelper.soap_endpoint(:soap_fault), :body => UserFixture.soap_fault # WSDL and SOAP request with a Savon::HTTPError. FakeWeb.register_uri :get, EndpointHelper.wsdl_endpoint(:http_error), :body => UserFixture.user_wsdl FakeWeb.register_uri :post, EndpointHelper.soap_endpoint(:http_error), :body => "", :status => ["404", "Not Found"] # WSDL and SOAP request with an invalid endpoint. FakeWeb.register_uri :get, EndpointHelper.wsdl_endpoint(:invalid), :body => "" FakeWeb.register_uri :post, EndpointHelper.soap_endpoint(:invalid), :body => "", :status => ["404", "Not Found"]
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
savon-0.6.7 | spec/http_stubs.rb |
savon-0.6.6 | spec/http_stubs.rb |
savon-0.6.5 | spec/http_stubs.rb |
savon-0.6.4 | spec/http_stubs.rb |