Sha256: 572a6925c5aa15e801e2d069d5052001caf51bc5802ffcb2b050467f4753e893

Contents?: true

Size: 457 Bytes

Versions: 24

Compression:

Stored size: 457 Bytes

Contents

require 'helper'
require 'lolsoap/client'

module LolSoap
  describe Response do
    let(:client) { LolSoap::Client.new File.read(TEST_ROOT + '/fixtures/stock_quote.wsdl') }
    let(:request) { client.request('GetLastTradePrice') }

    subject { Response.parse(request, File.read(TEST_ROOT + '/fixtures/stock_quote_response.xml')) }

    it 'should build a hash from the body' do
      subject.body_hash.must_equal({ 'Price' => '34.5' })
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

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