method

new

Importance_1
new(name=nil, 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.
Show source
Register or log in to add new notes.