Permalink
Browse files

Add Cucumber example.

  • Loading branch information...
1 parent dff3e51 commit c163c4dd55400d19bf5be3bcf76c8f75e4d25632 @gabebw gabebw committed Nov 21, 2011
Showing with 13 additions and 1 deletion.
  1. +13 −1 README.md
View
14 README.md
@@ -40,14 +40,26 @@ Just require the library and you're good to go:
`FakeBraintree.clear!` will clear all data, which you almost certainly want to
do before each test.
-Full example, in spec\_helper.rb:
+Full example:
+
+ # spec_helper.rb
+ require 'fake_braintree'
RSpec.configure do |c|
c.before do
FakeBraintree.clear!
end
end
+If you're using Cucumber, add this too:
+
+ # env.rb
+ require 'fake_braintree'
+
+ Before do
+ FakeBraintree.clear!
+ end
+
## Verifying credit cards
To verify every credit card you try to use, call:

0 comments on commit c163c4d

Please sign in to comment.