summaryrefslogtreecommitdiff
path: root/spec/ruby/command_line
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2021-07-17 13:16:48 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2021-07-17 13:16:48 +0900
commit503fa1620c1da74a15831bf864320cae4b17dc56 (patch)
tree294cd7a07c83b05857f94b193b32c651a3cc4fa1 /spec/ruby/command_line
parentf36a5a7624f7b5ac453d3bb2eef5d32c7ee4fea3 (diff)
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 ```
Diffstat (limited to 'spec/ruby/command_line')
-rw-r--r--spec/ruby/command_line/dash_upper_w_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/command_line/dash_upper_w_spec.rb b/spec/ruby/command_line/dash_upper_w_spec.rb
index b7056386069..1b36a1cc227 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