Evan
Evan

Reputation: 271

Is there a Mocha equivalent of Rspec’s “mock().as_null_object”?

Is there a Mocha equivalent of Rspec’s “mock().as_null_object”?

Upvotes: 11

Views: 1284

Answers (1)

Evan
Evan

Reputation: 271

Yes. Use “stub_everything()”

Documented here: http://mocha.rubyforge.org/classes/Mocha/API.html#M000004.

Upvotes: 16

Related Questions