Sha256: 8b488eef9eebc1835dc541e4540f4c2461f02fc5b942fcb1bb4d3b2b718184c1
Contents?: true
Size: 679 Bytes
Versions: 2
Compression:
Stored size: 679 Bytes
Contents
require 'bundler' Bundler.require 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.3 | spec/spec_helper.rb |
fake_braintree-0.4.2 | spec/spec_helper.rb |