What does as_null_object do?

So I’m going through the rspec book right now, and get to page 72, as it
introduces Spec::Mocks::Methods#as_null_object . In the book, it doesn’t
describe how it operates, or much detail about it other than it tells to
expect certain data, and ignore the rest.

ri Spec::Mocks::Methods#as_null_object simply states “no definition”.???

So, does anyone else have some more info on this? What is it, what’s
it’s total useage? what can I cook with it? Can I bbq it? What exactly?


Ronald C. [email protected]
T73 Biz

On Wed, Dec 23, 2009 at 3:44 PM, Ronald C. [email protected] wrote:

So I’m going through the rspec book right now, and get to page 72, as it
introduces Spec::Mocks::Methods#as_null_object . In the book, it doesn’t
describe how it operates, or much detail about it other than it tells to
expect certain data, and ignore the rest.

ri Spec::Mocks::Methods#as_null_object simply states “no definition”.???

Just added that so you’ll be able to get that definition from ri after
the
next release.

Cheers,
David