Sha256: 3f3b7ab52b50d88e73a1abf4d73a1e4e7d938c90490774aa6ec90dde9fa0c597

Contents?: true

Size: 764 Bytes

Versions: 2

Compression:

Stored size: 764 Bytes

Contents

require 'spork'

Spork.prefork do
  # Requires supporting ruby files with custom matchers and macros, etc,
  # in spec/support/ and its subdirectories.
  require 'rspec'
  require 'fake_braintree'
  require 'timecop'
  require 'bourne'
  Dir[File.join(File.dirname(__FILE__), "support/**/*.rb")].each {|f| require f}

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

  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.before do
      FakeBraintree.clear!
      FakeBraintree.verify_all_cards = false
    end
  end
end

Spork.each_run do
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fake_braintree-0.1.1 spec/spec_helper.rb
fake_braintree-0.1.0 spec/spec_helper.rb