From a2be428c5fec31b8adbd5ac087e7637ddf7e54d0 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sat, 2 May 2020 16:08:36 +0200 Subject: Fix ObjectSpace::WeakMap#key? to work if the value is nil * Fixes [Bug #16826] --- spec/ruby/core/objectspace/weakmap/shared/include.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec') diff --git a/spec/ruby/core/objectspace/weakmap/shared/include.rb b/spec/ruby/core/objectspace/weakmap/shared/include.rb index 370359e6ca..f9c174b6d1 100644 --- a/spec/ruby/core/objectspace/weakmap/shared/include.rb +++ b/spec/ruby/core/objectspace/weakmap/shared/include.rb @@ -21,7 +21,7 @@ describe :weakmap_include?, shared: true do end ruby_version_is "2.7" do - ruby_bug "#16826", "2.7.0"..."2.8.1" do + ruby_bug "#16826", "2.7.0"..."2.7.2" do it "reports true if the pair exists and the value is nil" do map = ObjectSpace::WeakMap.new key = Object.new -- cgit v1.2.3