Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

You don't have to call FakeBraintree.activate

  • Loading branch information...
commit dff3e512fb0aeff27de0b11efe54303875c87154 1 parent 499cb05
@gabebw gabebw authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 README.md
View
10 README.md
@@ -33,12 +33,14 @@ Currently in alpha (i.e. it does not support every Braintree call).
* `Braintree::TransparentRedirect.confirm` (only for creating customers)
## Quick start
-Call `FakeBraintree.activate!` to make it go. `FakeBraintree.clear!` will clear
-all data, which you probably want to do before each test.
+Just require the library and you're good to go:
-Example, in spec\_helper.rb:
+ require 'fake_braintree'
- FakeBraintree.activate!
+`FakeBraintree.clear!` will clear all data, which you almost certainly want to
+do before each test.
+
+Full example, in spec\_helper.rb:
RSpec.configure do |c|
c.before do
Please sign in to comment.
Something went wrong with that request. Please try again.