From 503fa1620c1da74a15831bf864320cae4b17dc56 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Sat, 17 Jul 2021 13:16:48 +0900 Subject: Fix a spec failure ``` 1) The -W command line option with :no-experimental suppresses experimental warnings FAILED Expected "" =~ /is experimental/ to be truthy but was nil ``` --- spec/ruby/command_line/dash_upper_w_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/ruby/command_line/dash_upper_w_spec.rb b/spec/ruby/command_line/dash_upper_w_spec.rb index b705638606..1b36a1cc22 100644 --- a/spec/ruby/command_line/dash_upper_w_spec.rb +++ b/spec/ruby/command_line/dash_upper_w_spec.rb @@ -37,7 +37,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 -- cgit v1.2.3