class RSpec::Mocks::ConstantMutator::DefinedConstantReplacer

def to_constant

def to_constant
  const = super
  const.stubbed = true
  const.previously_defined = true
  const
end