Sha256: 0bdfc6e923c10207a253b8d3bdda6f5106fb9f5cc1298d002db8ece7bd09ce62

Contents?: true

Size: 696 Bytes

Versions: 4

Compression:

Stored size: 696 Bytes

Contents

require 'helper'
require 'lolsoap/wsdl'

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

    it 'should successfully parse a WSDL document' do
      subject.operations.length.must_equal 2
      subject.operations['GetLastTradePrice'].tap do |o|
        o.input.name.must_equal 'tradePriceRequest'
        o.action.must_equal     'http://example.com/GetLastTradePrice'
      end

      subject.types.length.must_equal 4
      subject.types['xsd1:TradePriceRequest'].tap do |t|
        t.prefix.must_equal 'xsd1'
      end
    end

    describe '#inspect' do
      it 'works' do
        subject.inspect
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lolsoap-0.4.2 test/integration/test_wsdl.rb
lolsoap-0.4.1 test/integration/test_wsdl.rb
lolsoap-0.4.0 test/integration/test_wsdl.rb
lolsoap-0.3.2 test/integration/test_wsdl.rb