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.28.0 spec/mangopay/regulatory_spec.rb
mangopay-3.27.0 spec/mangopay/regulatory_spec.rb
mangopay-3.26.1 spec/mangopay/regulatory_spec.rb
mangopay-3.26.0 spec/mangopay/regulatory_spec.rb
mangopay-3.25.1 spec/mangopay/regulatory_spec.rb
mangopay-3.25.0 spec/mangopay/regulatory_spec.rb
mangopay-3.24.1 spec/mangopay/regulatory_spec.rb
mangopay-3.24.0 spec/mangopay/regulatory_spec.rb
mangopay-3.23.0 spec/mangopay/regulatory_spec.rb
mangopay-3.22.0 spec/mangopay/regulatory_spec.rb
mangopay-3.21.0 spec/mangopay/regulatory_spec.rb
mangopay-3.20.0 spec/mangopay/regulatory_spec.rb
mangopay-3.19.0 spec/mangopay/regulatory_spec.rb
mangopay-3.18.0 spec/mangopay/regulatory_spec.rb
mangopay-3.17.0 spec/mangopay/regulatory_spec.rb
mangopay-3.16.0 spec/mangopay/regulatory_spec.rb
mangopay-3.15.0 spec/mangopay/regulatory_spec.rb
mangopay-3.14.0 spec/mangopay/regulatory_spec.rb
mangopay-3.13.2 spec/mangopay/regulatory_spec.rb
mangopay-3.12.0 spec/mangopay/regulatory_spec.rb