Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move into a method.

  • Loading branch information...
commit 59a7b600023ee71614d025542922f92247ee11b6 1 parent 3daf2aa
@gabebw gabebw authored
Showing with 7 additions and 4 deletions.
  1. +7 −4 spec/spec_helper.rb
View
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 File.directory?('tmp')
+ File.new('tmp/braintree_log', 'w').close
+ end
+
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
+ clear_braintree_log
TEST_CC_NUMBER = %w(4111 1111 1111 1111).join

0 comments on commit 59a7b60

Please sign in to comment.
Something went wrong with that request. Please try again.