Sha256: 6dbfd03b94f953854e6c5d2808d9cd70167fd6e3a7a7edbc85b53be371d79269

Contents?: true

Size: 643 Bytes

Versions: 2

Compression:

Stored size: 643 Bytes

Contents

require 'rspec'
require 'fake_braintree'
require 'timecop'
require 'bourne'

def clear_braintree_log
  Dir.mkdir('tmp') unless File.directory?('tmp')
  File.new('tmp/braintree_log', 'w').close
end

Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each {|f| require f}

clear_braintree_log

TEST_CC_NUMBER = %w(4111 1111 1111 1111).join

RSpec.configure do |config|
  config.mock_with :mocha

  config.include BraintreeHelpers
  config.include CustomerHelpers
  config.include SubscriptionHelpers
  config.include FakeBraintree::Helpers

  config.before do
    FakeBraintree.clear!
    FakeBraintree.verify_all_cards = false
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fake_braintree-0.4.1 spec/spec_helper.rb
fake_braintree-0.4 spec/spec_helper.rb