Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gabe Berke-Williams
committed
Nov 16, 2011
1 parent
0c02a8e
commit ebeab46
Showing
2 changed files
with
21 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,19 +1,26 @@ | |||
# Requires supporting ruby files with custom matchers and macros, etc, | require 'spork' | ||
# in spec/support/ and its subdirectories. | |||
require 'rspec' | |||
require 'fake_braintree' | |||
require 'timecop' | |||
Dir[File.join(File.dirname(__FILE__), "support/**/*.rb")].each {|f| require f} | |||
|
|
||
Dir.mkdir('tmp') unless Dir.exist?('tmp') | Spork.prefork do | ||
File.new('tmp/braintree_log', 'w').close | # Requires supporting ruby files with custom matchers and macros, etc, | ||
# in spec/support/ and its subdirectories. | |||
require 'rspec' | |||
require 'fake_braintree' | |||
require 'timecop' | |||
Dir[File.join(File.dirname(__FILE__), "support/**/*.rb")].each {|f| require f} | |||
|
|
||
TEST_CC_NUMBER = %w(4111 1111 1111 1111).join | Dir.mkdir('tmp') unless Dir.exist?('tmp') | ||
File.new('tmp/braintree_log', 'w').close | |||
|
|
||
RSpec.configure do |config| | TEST_CC_NUMBER = %w(4111 1111 1111 1111).join | ||
config.mock_with :mocha | |||
|
|
||
config.include BraintreeHelpers | RSpec.configure do |config| | ||
config.mock_with :mocha | |||
|
|
||
config.before { FakeBraintree.clear! } | config.include BraintreeHelpers | ||
|
|||
config.before { FakeBraintree.clear! } | |||
end | |||
end | |||
|
|||
Spork.each_run do | |||
end | end |