lib/model_stubbing/model.rb
# Creates a stub for this model.  A stub with no name is assumed to be the default
# stub.  A global key for the definition is also created based on the singular
# form of the stub name.  
Creates a stub for this model.  A stub with no name is assumed to be the default
stub.  A global key for the definition is also created based on the singular
form of the stub name.
Creates a stub for this model . A stub with no name is assumed to be the default stub . A global key for the definition is also created based on the singular form of the stub name .
def stub(name = nil, options = {})
      if name.is_a?(Hash)
        options = name
        name    = :default
      end
      Stub.new(self, name, options)
    end
def stub ( name = nil , options = { } ) if name . is_a? ( Hash ) options = name name = :default end Stub . new ( self , name , options ) end
Creates a stub for this model.
Creates a stub for this model .
name
options