Sha256: a9fe3571ac08eb07f8e598f85ece440cf670f6c65b08cf3f2ea92ace1276225f

Contents?: true

Size: 479 Bytes

Versions: 4

Compression:

Stored size: 479 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 "#response" do
    it "execute an HTTP GET request and return the HTTPI::Response" do
      response = HTTPI::Response.new 200, {}, ResponseFixture.authentication
      HTTPI.expects(:get).with(http_request).returns(response)
      request.response.should == response
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
savon-0.8.0.beta.4 spec/savon/wsdl/request_spec.rb
savon-0.8.0.beta.3 spec/savon/wsdl/request_spec.rb
savon-0.8.0.beta.2 spec/savon/wsdl/request_spec.rb
savon-0.8.0.beta.1 spec/savon/wsdl/request_spec.rb