These are chat archives for rebelidealist/stripe-ruby-mock

Jul 2015
Jul 13 2015 18:17
Is there any documentation on how to make expectations with the stripe mock?
For example,
let( :stripe_mock ){ StripeMock.create_test_helper }  
charge = Stripe::Charge.create(...  
expect( stripe_mock ).to have_received( :charge ).with charge_data
Jul 13 2015 21:50
@georgeu2000 i can refer you to my respository of the configurations and rspec tests including stripe-ruby-mock tests : rails-stripe-rspec-tests . For tests on Stripe::Charge.create() see the stripe_charge_spec.rb