test/unit/test_envelope.rb in lolsoap-0.5.1 vs test/unit/test_envelope.rb in lolsoap-0.6.0

- old
+ new

@@ -9,11 +9,11 @@ :soap_version => '1.2' ) end let(:operation) do - OpenStruct.new(:input => OpenStruct.new(:prefix => 'ns0', :name => 'WashHandsRequest')) + OpenStruct.new(:input => OpenStruct.new(:body => OpenStruct.new(:prefix => 'ns0', :name => 'WashHandsRequest'))) end subject { Envelope.new(wsdl, operation) } let(:doc) { subject.doc } @@ -60,11 +60,11 @@ describe '#header' do it 'yields and returns the xml builder object for the header' do builder = Object.new builder_klass = MiniTest::Mock.new - builder_klass.expect(:new, builder, [header]) + builder_klass.expect(:new, builder, [header, nil]) block = nil ret = subject.header(builder_klass) { |b| block = b } ret.must_equal builder @@ -73,10 +73,10 @@ it "doesn't require a block" do builder = Object.new builder_klass = MiniTest::Mock.new - builder_klass.expect(:new, builder, [header]) + builder_klass.expect(:new, builder, [header, nil]) subject.header(builder_klass).must_equal builder end end