Reputation: 271
Is there a Mocha equivalent of Rspec’s “mock().as_null_object”?
Upvotes: 11
Views: 1284
Yes. Use “stub_everything()”
Documented here: http://mocha.rubyforge.org/classes/Mocha/API.html#M000004.
Upvotes: 16