spec/shapewear/savon_usage_spec.rb in shapewear-0.1.7 vs spec/shapewear/savon_usage_spec.rb in shapewear-0.1.8
- old
+ new
@@ -31,21 +31,21 @@
soap.body = { 'ID' => 0 }
end
r = response.body[:get_structured_data_response][:get_structured_data_result]
r.should be_a Hash
- r.should include :text => 'text from the struct'
+ r.should include :text => 'text from the struct', :xyz => 'xyz'
end
it "should work for structured responses from hashes" do
client = Savon::Client.new 'http://services.example.com/complete/soap/wsdl'
response = client.request :get_structured_data, :xmlns => 'http://services.example.com/v1' do
soap.body = { 'ID' => 1 }
end
r = response.body[:get_structured_data_response][:get_structured_data_result]
r.should be_a Hash
- r.should include :text => 'text from a hash'
+ r.should include :text => 'text from a hash', :xyz => 'xyz'
end
it "should raise SOAP 1.1 Faults" do
client = Savon::Client.new 'http://services.example.com/complete/soap/wsdl'
\ No newline at end of file