class Mocha::Configuration

def stubbing_method_unnecessarily=(value)

Other tags:
    Example: Preventing unnecessary stubbing of a method -

Parameters:
  • value (Symbol) -- one of +:allow+, +:warn+, +:prevent+.
def stubbing_method_unnecessarily=(value)
  @options[:stubbing_method_unnecessarily] = value
end