Skip to content

Commit

Permalink
Advise users not to set the Braintree environment
Browse files Browse the repository at this point in the history
Fixes #78.
  • Loading branch information
gabebw committed Jan 16, 2015
1 parent c3e4f80 commit 9bb8b06
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Expand Up @@ -8,7 +8,6 @@ to intercept all of the calls from Braintree's Ruby library and returns XML that
the Braintree library can parse. The whole point is not to hit the Braintree
API.


It supports a lot of Braintree methods, but it does not support every single one
of them (yet).

Expand Down Expand Up @@ -87,6 +86,12 @@ It is advised to run your tests with `js: true` (RSpec) or `@javascript`
want to take a look at
[capybara-webkit](https://github.com/thoughtbot/capybara-webkit).

## Don't set the Braintree environment

`fake_braintree` sets `Braintree::Configuration.environment = :development`. If
your code sets it to anything else (like `:sandbox`), then `fake_braintree` won't
work.

# Credit Cards

* `credit_card.card_type` will always be `"FakeBraintree"`.
Expand Down

0 comments on commit 9bb8b06

Please sign in to comment.