class Mocha::Configuration
def stubbing_method_on_non_mock_object=(value)
- Example: Preventing stubbing of a method on a non-mock object -
Parameters:
-
value
(Symbol
) -- one of +:allow+, +:warn+, +:prevent+.
def stubbing_method_on_non_mock_object=(value) @options[:stubbing_method_on_non_mock_object] = value end