spec/integration/spec_helper.rb in braintree-2.33.1 vs spec/integration/spec_helper.rb in braintree-2.34.0

- old
+ new

@@ -1,5 +1,7 @@ +require "securerandom" + unless defined?(INTEGRATION_SPEC_HELPER_LOADED) INTEGRATION_SPEC_HELPER_LOADED = true SSL_TEST_PORT = ENV['SSL_TEST_PORT'] || 8443 require File.dirname(__FILE__) + "/../spec_helper" @@ -43,7 +45,11 @@ end end def with_altpay_merchant(&block) with_other_merchant("altpay_merchant", "altpay_merchant_public_key", "altpay_merchant_private_key", &block) + end + + def random_payment_method_token + "payment-method-token-#{SecureRandom.hex(6)}" end end