diff options
author | Kyrylo Silin <silin@kyrylo.org> | 2019-06-09 18:44:46 +0300 |
---|---|---|
committer | Kyrylo Silin <silin@kyrylo.org> | 2019-06-15 18:35:18 +0300 |
commit | 992c28e246133bc3987a5c639d0eb558b3807832 (patch) | |
tree | 0dd4162040a71ee682e632703630860b3f4f87b8 /spec | |
parent | c5bc87bce32ad7aecb38c7eade6a1ae1ad93153e (diff) | |
download | pry-992c28e246133bc3987a5c639d0eb558b3807832.tar.gz |
spec/code_object: fix broken 'class method lookup' test
Diffstat (limited to 'spec')
-rw-r--r-- | spec/code_object_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/code_object_spec.rb b/spec/code_object_spec.rb index ef670e00..1a683c49 100644 --- a/spec/code_object_spec.rb +++ b/spec/code_object_spec.rb @@ -260,8 +260,10 @@ RSpec.describe Pry::CodeObject do end context "when looking up class methods of a named class" do - class TestClass - def self.class_method; end + before do + class TestClass + def self.class_method; end + end end after { Object.remove_const(:TestClass) } |