Is there a Mocha equivalent of Rspec’s “mock().as_null_object”?
Yes. Use “stub_everything()”
Documented here: http://mocha.rubyforge.org/classes/Mocha/API.html#M000004.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With