Sha256: 4273c49ee8428db00a088347b7ee446d86d3e8a00486d54cbda12b5cdd2f16df

Contents?: true

Size: 482 Bytes

Versions: 12

Compression:

Stored size: 482 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, {}, Fixture.response(:authentication)
      HTTPI.expects(:get).with(http_request).returns(response)
      request.response.should == response
    end
  end

end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
search_biomodel-1.0.0 search_biomodel/ruby/1.8/gems/savon-0.9.2/spec/savon/wsdl/request_spec.rb
savon-0.9.2 spec/savon/wsdl/request_spec.rb
s-savon-0.8.6 spec/savon/wsdl/request_spec.rb
savon-0.9.1 spec/savon/wsdl/request_spec.rb
savon-0.9.0 spec/savon/wsdl/request_spec.rb
savon-0.8.6 spec/savon/wsdl/request_spec.rb
savon-0.8.5 spec/savon/wsdl/request_spec.rb
savon-0.8.4 spec/savon/wsdl/request_spec.rb
savon-0.8.3 spec/savon/wsdl/request_spec.rb
savon-0.8.2 spec/savon/wsdl/request_spec.rb
savon-0.8.1 spec/savon/wsdl/request_spec.rb
savon-0.8.0 spec/savon/wsdl/request_spec.rb