spec/spec_helper.rb
################################################################################
# mangopay test account config (re-called once in configuration_spec)
mangopay test account config (re-called once in configuration_spec)
mangopay test account config ( re - called once in configuration_spec )
def reset_mangopay_configuration
  MangoPay.configure do |c|
    c.preproduction = true
    c.client_id = 'sdk-unit-tests'
    c.root_url = 'https://api.sandbox.mangopay.com'
    c.client_apiKey = 'cqFfFrWfCcb7UadHNxx2C9Lo6Djw8ZduLi7J9USTmu8bhxxpju'
    c.temp_dir = File.expand_path('../tmp', __FILE__)
    require 'fileutils'
    FileUtils.mkdir_p(c.temp_dir) unless File.directory?(c.temp_dir)
  end
end
def reset_mangopay_configuration MangoPay . configure do | c | c . preproduction = true c . client_id = 'sdk-unit-tests' c . root_url = 'https://api.sandbox.mangopay.com' c . client_apiKey = 'cqFfFrWfCcb7UadHNxx2C9Lo6Djw8ZduLi7J9USTmu8bhxxpju' c . temp_dir = File . expand_path ( '../tmp' , __FILE__ ) require 'fileutils' FileUtils . mkdir_p ( c . temp_dir ) unless File . directory? ( c . temp_dir ) end end
mangopay test account config (re-called once in configuration_spec)
mangopay test account config ( re - called once in configuration_spec )
# sandbox environment: