Skip to content

Commit

Permalink
Sporkify.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Nov 16, 2011
1 parent 0c02a8e commit ebeab46
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
1 change: 1 addition & 0 deletions fake_braintree.gemspec
Expand Up @@ -26,4 +26,5 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rspec', '~> 2.6.0' s.add_development_dependency 'rspec', '~> 2.6.0'
s.add_development_dependency 'mocha', '~> 0.9.12' s.add_development_dependency 'mocha', '~> 0.9.12'
s.add_development_dependency 'timecop', '~> 0.3.5' s.add_development_dependency 'timecop', '~> 0.3.5'
s.add_development_dependency 'spork', '~> 0.9.0.rc9'
end end
33 changes: 20 additions & 13 deletions spec/spec_helper.rb
@@ -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

0 comments on commit ebeab46

Please sign in to comment.