From e18bb8bf53737daff0809f973fb338a37e67b714 Mon Sep 17 00:00:00 2001 From: Kyrylo Silin Date: Fri, 22 Nov 2013 01:34:19 +0200 Subject: [PATCH] spec/method_spec.rb: cleanup Object after method addition --- spec/method_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/method_spec.rb b/spec/method_spec.rb index ca8cb1bc..86a32516 100644 --- a/spec/method_spec.rb +++ b/spec/method_spec.rb @@ -478,6 +478,10 @@ describe Pry::Method do meth = Pry::Method.new(method(:my_top_level_method)) meth.aliases.should.include 'my_other_top_level_method' + + class Object + remove_method :my_top_level_method + end end unless Pry::Helpers::BaseHelpers.mri_18?