Sha256: 515c922b8433c36528ca3ce8dd9104cfa84f8d0157643462f333e20a3c0f3cc0
Contents?: true
Size: 796 Bytes
Versions: 1
Compression:
Stored size: 796 Bytes
Contents
require "spec_helper" describe Savon::WSDL::Request do let(:http_request) { HTTPI::Request.new :url => Endpoint.wsdl } let(:request) { Savon::WSDL::Request.new http_request } describe ".execute" do it "executes a WSDL request and returns the response" do response = HTTPI::Response.new 200, {}, Fixture.response(:authentication) HTTPI.expects(:get).with(http_request).returns(response) Savon::WSDL::Request.execute(http_request).should == response end end describe "#response" do it "executes an HTTP GET request and returns the HTTPI::Response" do response = HTTPI::Response.new 200, {}, Fixture.response(:authentication) HTTPI.expects(:get).with(http_request).returns(response) request.response.should == response end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
savon-0.9.3 | spec/savon/wsdl/request_spec.rb |