Sha256: 93dad57964e5f37a9356165ecf2fc59a988755d951ba32fc4759288d9b6783a1

Contents?: true

Size: 579 Bytes

Versions: 6

Compression:

Stored size: 579 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), '../test_helper'))
config = File.join(TEST_PATH, 'config/braintree_auth.yml')
if File.exist?(config) && auth = YAML.load_file(config)
  BraintreeRails::Configuration.environment = :sandbox
  BraintreeRails::Configuration.merchant_id = auth['merchant_id']
  BraintreeRails::Configuration.public_key = auth['public_key']
  BraintreeRails::Configuration.private_key = auth['private_key']
else
  puts '*' * 80
  puts "You need to provide real credentials in #{config} to run integration tests"
  puts '*' * 80
  exit(0)
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
braintree-rails-1.2.3 test/integration/integration_test_helper.rb
braintree-rails-1.2.2 test/integration/integration_test_helper.rb
braintree-rails-1.2.1 test/integration/integration_test_helper.rb
braintree-rails-1.2.0 test/integration/integration_test_helper.rb
braintree-rails-1.1.0 test/integration/integration_test_helper.rb
braintree-rails-1.0.0 test/integration/integration_test_helper.rb