test/integration/test_wsdl.rb in lolsoap-0.2.0 vs test/integration/test_wsdl.rb in lolsoap-0.3.0
- old
+ new
@@ -4,13 +4,13 @@
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.length.must_equal 2
subject.operations['GetLastTradePrice'].tap do |o|
- o.input.must_equal subject.types['xsd1:TradePriceRequest']
- o.action.must_equal 'http://example.com/GetLastTradePrice'
+ o.input.name.must_equal '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'