class RSpec::Mocks::AnyInstance::Recorder
def backup_method!(method_name)
def backup_method!(method_name) alias_method_name = build_alias_method_name(method_name) @klass.class_eval do if method_defined?(method_name) alias_method alias_method_name, method_name end end end