Sha256: 7c45fe7369e72c7697667e7ee5f4875e9bd983554df59b7c124c8a42d336199f

Contents?: true

Size: 574 Bytes

Versions: 24

Compression:

Stored size: 574 Bytes

Contents

require 'helper'
require 'lolsoap/client'

module LolSoap
  describe Client do
    subject { Client.new(File.read(TEST_ROOT + '/fixtures/stock_quote.wsdl')) }

    it 'builds a request' do
      request = subject.request('GetLastTradePrice')
      request.body { |foo| foo.bar }
      request.content.empty?.must_equal false
    end

    it 'builds a response' do
      request = subject.request('GetLastTradePrice')
      response = subject.response(request, File.read(TEST_ROOT + '/fixtures/stock_quote_response.xml'))
      response.body.wont_equal nil
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
lolsoap-0.11.0 test/integration/test_client.rb
lolsoap-0.10.0 test/integration/test_client.rb
lolsoap-0.9.0 test/integration/test_client.rb
lolsoap-0.8.3 test/integration/test_client.rb
lolsoap-0.8.2 test/integration/test_client.rb
lolsoap-0.8.1 test/integration/test_client.rb
lolsoap-0.8.0 test/integration/test_client.rb
lolsoap-0.7.0 test/integration/test_client.rb
lolsoap-0.6.1 test/integration/test_client.rb
lolsoap-0.6.0 test/integration/test_client.rb
lolsoap-0.5.1 test/integration/test_client.rb
lolsoap-0.5.0 test/integration/test_client.rb
lolsoap-0.4.2 test/integration/test_client.rb
lolsoap-0.4.1 test/integration/test_client.rb
lolsoap-0.4.0 test/integration/test_client.rb
lolsoap-0.3.2 test/integration/test_client.rb
lolsoap-0.3.1 test/integration/test_client.rb
lolsoap-0.3.0 test/integration/test_client.rb
lolsoap-0.2.0 test/integration/test_client.rb
lolsoap-0.1.4 test/integration/test_client.rb