Sha256: 1dca16fe77b5b1aba7cd59d580f7aceb14e9ab6ee229a4305835ac25cf8321f7
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
require 'spec_helper' describe Wasabi::Parser do context 'with: no_message_parts.wsdl' do subject do parser = Wasabi::Parser.new Nokogiri::XML(xml) parser.parse parser end let(:xml) { fixture(:no_message_parts).read } it 'falls back to using the message type in the port element' do # Operation's input has no part element in the message, so using the message type. subject.operations[:save][:input].should == 'Save' # Operation's output has part element in the message, so using part element's type. subject.operations[:save][:output].should == 'SaveResponse' end it 'falls back to using the namespace ID in the port element' do subject.operations[:save][:namespace_identifier].should == 'actions' end it 'gracefully handles port messages without a colon' do subject.operations[:delete][:input].should == 'Delete' subject.operations[:delete][:output].should == 'DeleteResponse' subject.operations[:delete][:namespace_identifier].should be_nil end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
wasabi-3.3.0 | spec/wasabi/parser/no_message_parts_spec.rb |
wasabi_with_adapter-3.2.4 | spec/wasabi/parser/no_message_parts_spec.rb |