Sha256: 36d2b002813542c4f2b6cd2704404ab8b07b83cbf88b077fae8e0ddf7922f057

Contents?: true

Size: 415 Bytes

Versions: 7

Compression:

Stored size: 415 Bytes

Contents

module CustomerHelpers
  def create_customer(credit_card_options = {})
    credit_card_options[:number] ||= TEST_CC_NUMBER
    credit_card_options[:expiration_date] ||= '04/2016'
    Braintree::Customer.create(:credit_card => credit_card_options)
  end

  def create_customer_with_invalid_card(credit_card_options = {})
    credit_card_options[:number] = '123456'
    create_customer(credit_card_options)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fake_braintree-0.4 spec/support/customer_helpers.rb
fake_braintree-0.3 spec/support/customer_helpers.rb
fake_braintree-0.2.1 spec/support/customer_helpers.rb
fake_braintree-0.2.0 spec/support/customer_helpers.rb
fake_braintree-0.1.1 spec/support/customer_helpers.rb
fake_braintree-0.1.0 spec/support/customer_helpers.rb
fake_braintree-0.0.6 spec/support/customer_helpers.rb