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:
parent
50733344ae
commit
e18bb8bf53
1 changed files with 4 additions and 0 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue