Sha256: 33994d0d1cea1701f71fbe35b877a44585b1f059458c6af8d93d0deff2aa66c8

Contents?: true

Size: 776 Bytes

Versions: 5

Compression:

Stored size: 776 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['TradePriceRequest']
        o.action.must_equal 'http://example.com/GetLastTradePrice'
      end

      subject.types.length.must_equal 3
      subject.types['TradePriceRequest'].tap do |t|
        t.name.must_equal 'TradePriceRequest'
        t.namespace.must_equal 'http://example.com/stockquote.xsd'
      end
    end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lolsoap-0.1.4 test/integration/test_wsdl.rb
lolsoap-0.1.3 test/integration/test_wsdl.rb
lolsoap-0.1.2 test/integration/test_wsdl.rb
lolsoap-0.1.1 test/integration/test_wsdl.rb
lolsoap-0.1.0 test/integration/test_wsdl.rb