ruby-changes:66821
From: Kazuhiro <ko1@a...>
Date: Sat, 17 Jul 2021 13:18:07 +0900 (JST)
Subject: [ruby-changes:66821] 503fa1620c (master): Fix a spec failure
https://git.ruby-lang.org/ruby.git/commit/?id=503fa1620c From 503fa1620c1da74a15831bf864320cae4b17dc56 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> 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 b705638..1b36a1c 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 https://github.com/ruby/ruby/blob/trunk/spec/ruby/command_line/dash_upper_w_spec.rb#L37 end ruby_version_is "3.0" do - @src = '[0, 1] => [a, b]' + @src = 'warn "This is experimental warning.", category: :experimental' end end -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/