Skip to content

Commit

Permalink
Instructions on using fake_braintree with Spork.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Dec 19, 2011
1 parent 68e4e0d commit e1e8e71
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Expand Up @@ -94,6 +94,29 @@ will fail). Setting `verify_all_cards!`, on the other hand, will prevent
creation of customers with bad credit cards - Braintree won't even get to trying
to charge them.

## Spork

To use fake\_braintree with Spork, do this:

# Gemfile
group :test do
gem 'fake_braintree', :require => false
end

# spec/spec_helper.rb
Spork.each_run do
require 'fake_braintree'
# ...other FakeBraintree configuration, for example:
# FakeBraintree.verify_all_cards!
end

# features/support/env.rb
Spork.each_run do
require 'fake_braintree'
# ...other FakeBraintree configuration, for example:
# FakeBraintree.verify_all_cards!
end

## Generating transactions

You can generate a transaction using `FakeBraintree.generate_transaction`. This
Expand Down

0 comments on commit e1e8e71

Please sign in to comment.