This week's book giveaways are in the Scala and Android forums. We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line! See this thread and this one for details.
I'm trying to test an active record object destroy failure but I'm having problems creating a failure situation. I have a before_filter method called 'require_user_payment_info' which validates the @payment_info object before the delete method is called so I can't create a 'bad' @payment_info object before the delete method is called.
Here's the require_user_payment_info method:
And the actual delete method:
posted 4 years ago
Bingo - here's my solution:
Thanks for your help!
If you are using a rototiller, you are doing it wrong. Even on this tiny ad: