Sha256: e2ee2946cc652820c300dd7c7d93cddaca9eefcefedee0c0fdabca081b2108be

Contents?: true

Size: 442 Bytes

Versions: 2

Compression:

Stored size: 442 Bytes

Contents

require 'spec_helper'

describe EmaySoap::Client do
  it '#operations' do
    expect(EmaySoap::Client.new.operations).to be_kind_of Array
  end

  it '#operation' do
    expect(EmaySoap::Client.new.operation(:get_balance)).to be_kind_of Savon::Operation
  end

  it 'method_missing' do
    client = EmaySoap.client
    expect(client.get_balance).to be_kind_of Hash
    expect(client.get_balance[:get_balance_response]).to be_truthy
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
emay_soap-0.0.2 spec/emay_soap/client_spec.rb
emay_soap-0.0.1 spec/emay_soap/client_spec.rb