highfidelity/fake_braintree

Documentation should mention to not set config

Closed this issue · 6 comments

The README should note that you have to not set any of the braintree config values for it to work.

Sure, I can update it - what configuration did you set exactly?

unless Rails.env.test?
    Braintree::Configuration.environment = :sandbox
    Braintree::Configuration.merchant_id = ENV['BRAINTREE_ID']
    Braintree::Configuration.public_key = ENV['BRAINTREE_PUBLIC_KEY']
    Braintree::Configuration.private_key = ENV['BRAINTREE_PRIVATE_KEY']
end

Ah, great. Thank you.

I think that the only thing that messes with fake_braintree is setting Braintree::Configuration.environment = :sandbox. If you set everything else, but don't set that, does it work? I want to be as specific as possible in the docs.

Yep, that did it.

How's this look: #79