# File lib/mocha/any_instance_method.rb, line 39 39: def restore_original_method 40: if method_exists?(hidden_method) 41: begin 42: stubbee.send(:alias_method, method, hidden_method) 43: stubbee.send(:remove_method, hidden_method) 44: rescue NameError 45: # deal with nasties like ActiveRecord::Associations::AssociationProxy 46: end 47: end 48: end