Sha256: c19c6cbe108abcfd75ce2e83b30d3829f5ab940580a0ddbb3d7728d328e6a4f5

Contents?: true

Size: 748 Bytes

Versions: 1

Compression:

Stored size: 748 Bytes

Contents

require 'spork'

Spork.prefork do
  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
end

Spork.each_run do
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fake_braintree-0.2.1 spec/spec_helper.rb