class RSpec::Mocks::ConstantMutator::DefinedConstantReplacer

def transfer_nested_constants(constants)

def transfer_nested_constants(constants)
  constants.each do |const|
    @mutated_value.const_set(const, get_const_defined_on(original_value, const))
  end
end