Sha256: 5eb9d6fff074753f1a4f6bcc2c5f01e113c4b6e2ebe9f77de8bb9d632cba94a0

Contents?: true

Size: 490 Bytes

Versions: 11

Compression:

Stored size: 490 Bytes

Contents

describe MangoPay::Configuration do

  it 'fails when calling with wrong client credentials' do
    expect {
      c = MangoPay.configuration
      c.client_id = 'test_asd'
      c.client_passphrase = '00000'
      MangoPay::User.fetch()
    }.to raise_error(MangoPay::ResponseError)
  end

  it 'goes ok when calling with correct client credentials' do
    reset_mangopay_configuration
    users = MangoPay::User.fetch()
    expect(users).to be_kind_of(Array)
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mangopay-3.0.23 spec/mangopay/configuration_spec.rb
mangopay-3.0.21 spec/mangopay/configuration_spec.rb
mangopay-3.0.20 spec/mangopay/configuration_spec.rb
mangopay-3.0.19 spec/mangopay/configuration_spec.rb
mangopay-3.0.18 spec/mangopay/configuration_spec.rb
mangopay-3.0.17 spec/mangopay/configuration_spec.rb
mangopay-3.0.16 spec/mangopay/configuration_spec.rb
mangopay-3.0.15 spec/mangopay/configuration_spec.rb
mangopay-3.0.14 spec/mangopay/configuration_spec.rb
mangopay-3.0.13 spec/mangopay/configuration_spec.rb
mangopay-3.0.12 spec/mangopay/configuration_spec.rb