Sha256: aef489df2ba285ed2bd82316f728e61eddef7b630ffeeb72153998d2f06ff066

Contents?: true

Size: 708 Bytes

Versions: 1

Compression:

Stored size: 708 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 1
      subject.operations['GetLastTradePrice'].tap do |o|
        o.input.must_equal  subject.types['xsd1:TradePriceRequest']
        o.action.must_equal 'http://example.com/GetLastTradePrice'
      end

      subject.types.length.must_equal 3
      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

1 entries across 1 versions & 1 rubygems

Version Path
lolsoap-0.2.0 test/integration/test_wsdl.rb