# File lib/mocha/class_method.rb, line 47 47: def restore_original_method 48: if method_exists?(hidden_method) 49: begin 50: stubbee.__metaclass__.send(:alias_method, method, hidden_method) 51: stubbee.__metaclass__.send(:remove_method, hidden_method) 52: rescue NameError 53: # deal with nasties like ActiveRecord::Associations::AssociationProxy 54: end 55: end 56: end