Sha256: e8bc526c88dd747433cc01919be90baf9486a4ddce6a822ca6417c0f8af249dc

Contents?: true

Size: 804 Bytes

Versions: 3

Compression:

Stored size: 804 Bytes

Contents

require 'spec_helper'

describe 'Integration with Atlassian Jira' do

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

  it 'returns a map of services and ports' do
    expect(client.services).to eq(
      'JiraSoapServiceService' => {
        :ports => {
          'jirasoapservice-v2' => {
            :type     => 'http://schemas.xmlsoap.org/wsdl/soap/',
            :location => 'https://jira.atlassian.com/rpc/soap/jirasoapservice-v2'
          }
        }
      }
    )
  end

  it 'raises an error because RPC/encoded operations are not ' do
    service, port = 'JiraSoapServiceService', 'jirasoapservice-v2'

    expect { client.operation(service, port, 'updateGroup') }.
      to raise_error(Sekken::UnsupportedStyleError, /"updateGroup" 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/jira_spec.rb
sekken-0.2.0 spec/integration/jira_spec.rb
sekken-0.1.0 spec/integration/jira_spec.rb