Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move into a method.

  • Loading branch information...
commit 59a7b600023ee71614d025542922f92247ee11b6 1 parent 3daf2aa
Gabe Berke-Williams gabebw authored
Showing with 7 additions and 4 deletions.
  1. +7 −4 spec/spec_helper.rb
11 spec/spec_helper.rb
@@ -1,16 +1,19 @@
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'
+ def clear_braintree_log
+ Dir.mkdir('tmp') unless'tmp')
+'tmp/braintree_log', 'w').close
+ end
Dir[File.join(File.dirname(__FILE__), "support/**/*.rb")].each {|f| require f}
- Dir.mkdir('tmp') unless'tmp')
-'tmp/braintree_log', 'w').close
+ clear_braintree_log
TEST_CC_NUMBER = %w(4111 1111 1111 1111).join
Please sign in to comment.
Something went wrong with that request. Please try again.