Sha256: 70858f7155d9053591e885a31dcc21fbcec60625ff92acaed6ea00a73d79fe80

Contents?: true

Size: 602 Bytes

Versions: 15

Compression:

Stored size: 602 Bytes

Contents

require 'helper'
require 'lolsoap/envelope'
require 'lolsoap/request'

module LolSoap
  describe Request do
    let(:wsdl) { WSDL.parse(File.read(TEST_ROOT + '/fixtures/stock_quote.wsdl')) }
    let(:operation) { wsdl.operation('GetLastTradePrice') }
    let(:envelope) { Envelope.new(wsdl, operation) }

    subject { Request.new(envelope) }

    it 'should put together a HTTP request' do
      subject.url.must_equal "http://example.com/stockquote"
      subject.headers['SOAPAction'].must_equal "http://example.com/GetLastTradePrice"
      subject.content.empty?.must_equal false
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
lolsoap-0.6.0 test/integration/test_request.rb
lolsoap-0.5.1 test/integration/test_request.rb
lolsoap-0.5.0 test/integration/test_request.rb
lolsoap-0.4.2 test/integration/test_request.rb
lolsoap-0.4.1 test/integration/test_request.rb
lolsoap-0.4.0 test/integration/test_request.rb
lolsoap-0.3.2 test/integration/test_request.rb
lolsoap-0.3.1 test/integration/test_request.rb
lolsoap-0.3.0 test/integration/test_request.rb
lolsoap-0.2.0 test/integration/test_request.rb
lolsoap-0.1.4 test/integration/test_request.rb
lolsoap-0.1.3 test/integration/test_request.rb
lolsoap-0.1.2 test/integration/test_request.rb
lolsoap-0.1.1 test/integration/test_request.rb
lolsoap-0.1.0 test/integration/test_request.rb