class Mocha::Configuration
def stubbing_method_unnecessarily=(value)
- 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