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

13th
Jul 2015
George
@georgeu2000
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
kathyonu
@kathyonu
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