method
stub_everything
1.2.8 -
Show latest stable
- Class:
Spec::Mocks::ExampleMethods
stub_everything(name = 'stub')public
DEPRECATED - use mock(‘name’).as_null_object instead
Shortcut for creating a mock object that will return itself in response to any message it receives that it hasn’t been explicitly instructed to respond to.