Sha256: e254892e016b72005240c580b6e61b4c3b85921b68f3919387d2b13934f790af

Contents?: true

Size: 1.04 KB

Versions: 22

Compression:

Stored size: 1.04 KB

Contents

describe MangoPay::Regulatory do

  describe 'GET Country Authorizations' do
    it 'can get country authorizations' do
      country_authorizations = MangoPay::Regulatory.get_country_authorizations('FR')

      expect(country_authorizations).not_to be_nil
      expect(country_authorizations['CountryCode']).not_to be_nil
      expect(country_authorizations['CountryName']).not_to be_nil
      expect(country_authorizations['Authorization']).not_to be_nil
      expect(country_authorizations['LastUpdate']).not_to be_nil
    end
  end

  describe 'GET All Countries Authorizations' do
    it 'can get all countries authorizations' do
      country_authorizations = MangoPay::Regulatory.get_all_countries_authorizations

      expect(country_authorizations).not_to be_nil
      expect(country_authorizations[0]['CountryCode']).not_to be_nil
      expect(country_authorizations[0]['CountryName']).not_to be_nil
      expect(country_authorizations[0]['Authorization']).not_to be_nil
      expect(country_authorizations[0]['LastUpdate']).not_to be_nil
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
mangopay-3.11.1 spec/mangopay/regulatory_spec.rb
mangopay-3.11.0 spec/mangopay/regulatory_spec.rb