module RSpec::Mocks::ExampleMethods
def stub_const(constant_name, value, options = {})
-
(Object)
- the stubbed value of the constant
Options Hash:
(**options)
-
:transfer_nested_constants
(Boolean, Array
) -- Determines
Parameters:
-
options
(Hash
) -- Stubbing options. -
value
(Object
) -- The value to make the constant refer to. When the -
constant_name
(String
) -- The fully qualified name of the constant. The current
def stub_const(constant_name, value, options = {}) ConstantMutator.stub(constant_name, value, options) end