diff options
author | Benoit Daloze <eregontp@gmail.com> | 2019-04-27 18:53:23 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2019-04-27 18:53:23 +0200 |
commit | a1b4816759418ca8fe510e8739622fc5d77ab0f0 (patch) | |
tree | 9d4fb6091d0086817f5bde46bf1150e9130d34fd /spec/ruby/core/basicobject | |
parent | 00c33d9c232ed1a79eda17acd7231ac93caa162b (diff) | |
download | ruby-a1b4816759418ca8fe510e8739622fc5d77ab0f0.tar.gz |
Update to ruby/spec@15c9619
Diffstat (limited to 'spec/ruby/core/basicobject')
-rw-r--r-- | spec/ruby/core/basicobject/basicobject_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/ruby/core/basicobject/basicobject_spec.rb b/spec/ruby/core/basicobject/basicobject_spec.rb index 860ad93e89..ccaa9c8593 100644 --- a/spec/ruby/core/basicobject/basicobject_spec.rb +++ b/spec/ruby/core/basicobject/basicobject_spec.rb @@ -19,8 +19,12 @@ describe "BasicObject" do BasicObjectSpecs::BOSubclass.kernel_defined?.should be_nil end + it "is included in Object's list of constants" do + Object.constants(false).should include(:BasicObject) + end + it "includes itself in its list of constants" do - BasicObject.constants.should include(:BasicObject) + BasicObject.constants(false).should include(:BasicObject) end end |