Sha256: cec3959bf2df61d3d0e0b8af84e57ecdf657c50d24fb599d9f9fc7dbed9665a8
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
require 'spec_helper' describe 'Integration with BLZService' do subject(:client) { Sekken.new fixture('wsdl/blz_service') } let(:service_name) { :BLZService } let(:port_name) { :BLZServiceSOAP11port_http } it 'creates an example request' do operation = client.operation(service_name, port_name, :getBank) expect(operation.example_body).to eq( getBank: { blz: 'string' } ) end it 'builds a request' do operation = client.operation(service_name, port_name, :getBank) operation.body = { getBank: { blz: 70070010 } } expected = Nokogiri.XML(%{ <env:Envelope xmlns:lol0="http://thomas-bayer.com/blz/" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> <env:Header/> <env:Body> <lol0:getBank> <lol0:blz>70070010</lol0:blz> </lol0:getBank> </env:Body> </env:Envelope> }) expect(Nokogiri.XML operation.build). to be_equivalent_to(expected).respecting_element_order end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sekken-0.3.0 | spec/integration/blz_service_spec.rb |
sekken-0.2.0 | spec/integration/blz_service_spec.rb |
sekken-0.1.0 | spec/integration/blz_service_spec.rb |