Sha256: 2337c8f1e6fcd8533493d013d40a679b397984c25c0340f66e9126adc013da4f

Contents?: true

Size: 781 Bytes

Versions: 3

Compression:

Stored size: 781 Bytes

Contents

require 'spec_helper'

describe 'Integration with DataExchange' do

  subject(:client) { Sekken.new fixture('wsdl/data_exchange') }

  it 'returns a map of services and ports' do
    expect(client.services).to eq(
      'DataExchange'       => {
        :ports        => {
          'DataExchange'  => {
            :type     => 'http://schemas.xmlsoap.org/wsdl/soap/',
            :location => 'http://my.yfu.org/cgi-bin/WebObjects/WebService.woa/ws/DataExchange'
          }
        }
      }
    )
  end

  it 'raises an error because RPC/encoded operations are not ' do
    service = port = 'DataExchange'

    expect { client.operation(service, port, 'submit') }.
      to raise_error(Sekken::UnsupportedStyleError, /"submit" is an "rpc\/encoded" style operation/)
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sekken-0.3.0 spec/integration/data_exchange_spec.rb
sekken-0.2.0 spec/integration/data_exchange_spec.rb
sekken-0.1.0 spec/integration/data_exchange_spec.rb