Sha256: 2f408fdfddeb1cebbf6f3cb237ece0f945644e4c0a63a8d4c1236cb034c20f1b
Contents?: true
Size: 782 Bytes
Versions: 2
Compression:
Stored size: 782 Bytes
Contents
require "spec_helper" describe Wasabi::Parser do context 'with: multiple_parts_in_message.wsdl' do subject do parser = Wasabi::Parser.new Nokogiri::XML(xml) parser.parse parser end let(:xml) { fixture(:multiple_parts_in_message).read } context "with a parts attribute in soap:body element" do it 'uses the part specified in parts attribute' do request = subject.operations[:some_operation][:input] expect(request).to eq("SomeRequestBody") end end context "with no parts attribute in soap:body element" do it 'uses the first part element in message' do request = subject.operations[:other_operation][:input] expect(request).to eq("SomeRequest") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wasabi-3.5.0 | spec/wasabi/parser/multiple_parts_in_message_spec.rb |
wasabi-3.4.0 | spec/wasabi/parser/multiple_parts_in_message_spec.rb |