--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Creates a new mock with a <tt>name</tt> (that will be used in error messages only)
- !ruby/struct:SM::Flow::H 
  level: 2
  text: "Options:"
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>:null_object</tt> - if true, the mock object acts as a forgiving null object allowing any message to be sent to it.
  type: :BULLET
full_name: Spec::Mocks::Mock::new
is_singleton: true
name: new
params: (name, stubs_and_options={})
visibility: public
