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.1.3 test/integration/test_response.rb
lolsoap-0.1.2 test/integration/test_response.rb
lolsoap-0.1.1 test/integration/test_response.rb
lolsoap-0.1.0 test/integration/test_response.rb