From 2a5b5ff49a0fb62a98451323a608f5f1ba0c9116 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Sat, 17 Jul 2021 13:24:08 +0900 Subject: [PATCH] Fix a spec failure ``` 1) Warning.[]= :experimental emits and suppresses warnings for :experimental FAILED Expected "" =~ /is experimental/ to be truthy but was nil ``` --- spec/ruby/core/warning/element_set_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/ruby/core/warning/element_set_spec.rb b/spec/ruby/core/warning/element_set_spec.rb index b21436d3c7..3b0ea45c9b 100644 --- a/spec/ruby/core/warning/element_set_spec.rb +++ b/spec/ruby/core/warning/element_set_spec.rb @@ -14,7 +14,7 @@ ruby_version_is '2.7' do end ruby_version_is "3.0" do - @src = '[0, 1] => [a, b]' + @src = 'warn "This is experimental warning.", category: :experimental' end end