method
new
1.2.0 -
Show latest stable
- Class:
Spec::Mocks::Mock
new(name, stubs_and_options={})public
Creates a new mock with a name (that will be used in error messages only) == Options:
- :null_object - if true, the mock object acts as a forgiving null object allowing any message to be sent to it.