1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

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

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?