spec/method_spec.rb: cleanup Object after method addition

This commit is contained in:
Kyrylo Silin 2013-11-22 01:34:19 +02:00
parent 50733344ae
commit e18bb8bf53
1 changed files with 4 additions and 0 deletions

View File

@ -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?