RailsApps / rails-stripe-membership-saas

An example Rails 4.2 app with Stripe and the Payola gem for a membership or subscription site.
http://railsapps.github.io/rails-stripe-membership-saas
1.14k stars 232 forks source link

Initial User.update_stripe specs and helpers #44

Closed tmock12 closed 11 years ago

tmock12 commented 11 years ago

Starting the process of testing the User.update_stripe method. It may need to be refactored as right now its large, confusing and a lot of if statements. I want to get some tests in place and then start breaking it up. But the pain in testing it was a sign to me that there is a little too much going on in there.

Anyways, heres the beginning of testing for it. :sweat: that was tiring...

DanielKehoe commented 11 years ago

Very good. The User.update_stripe method is non-obvious and ugly.