spec/spec_helper.rb in braintree-3.3.0 vs spec/spec_helper.rb in braintree-3.4.0
- old
+ new
@@ -38,10 +38,11 @@
UsBankMerchantAccountId = "us_bank_merchant_account"
AnotherUsBankMerchantAccountId = "another_us_bank_merchant_account"
AdyenMerchantAccountId = "adyen_ma"
HiperBRLMerchantAccountId = "hiper_brl"
CardProcessorBRLMerchantAccountId = "card_processor_brl"
+ FakeFirstDataMerchantAccountId = "fake_first_data_merchant_account"
TrialPlan = {
:description => "Plan for integration tests -- with trial",
:id => "integration_trial_plan",
:price => BigDecimal("43.21"),
@@ -86,17 +87,17 @@
TestMerchantConfig = Braintree::Configuration.new(
:logger => Logger.new("/dev/null"),
:environment => Braintree::Configuration.environment,
:merchant_id => "test_merchant_id",
:public_key => "test_public_key",
- :private_key => "test_private_key"
+ :private_key => "test_private_key",
)
def self.make_past_due(subscription, number_of_days_past_due = 1)
config = Braintree::Configuration.instantiate
config.http.put(
- "#{config.base_merchant_path}/subscriptions/#{subscription.id}/make_past_due?days_past_due=#{number_of_days_past_due}"
+ "#{config.base_merchant_path}/subscriptions/#{subscription.id}/make_past_due?days_past_due=#{number_of_days_past_due}",
)
end
def self.settle_transaction(transaction_id)
config = Braintree::Configuration.instantiate
@@ -111,10 +112,10 @@
def self.create_merchant(params={})
gateway = Braintree::Gateway.new(
:client_id => "client_id$#{Braintree::Configuration.environment}$integration_client_id",
:client_secret => "client_secret$#{Braintree::Configuration.environment}$integration_client_secret",
- :logger => Logger.new("/dev/null")
+ :logger => Logger.new("/dev/null"),
)
gateway.merchant.create({
:email => "name@email.com",
:country_code_alpha3 => "GBR",