diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-11-01 13:55:54 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-11-01 13:55:54 +0900 |
commit | 0e33028d69a25c512df1a44f930652c9a5c5b153 (patch) | |
tree | 87d77f4337baacb44eb0a302446c043762a6eb73 /spec/ruby/command_line | |
parent | b1e7c3a31f0a946a6a435acb983126cc6d7693be (diff) | |
download | ruby-0e33028d69a25c512df1a44f930652c9a5c5b153.tar.gz |
use one-line pattern matching for warning tests
Diffstat (limited to 'spec/ruby/command_line')
-rw-r--r-- | spec/ruby/command_line/dash_upper_w_spec.rb | 2 |
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 2b617f9f7f..40e8fba75b 100644 --- a/spec/ruby/command_line/dash_upper_w_spec.rb +++ b/spec/ruby/command_line/dash_upper_w_spec.rb @@ -32,7 +32,7 @@ ruby_version_is "2.7" do describe "The -W command line option with :no-experimental" do it "suppresses experimental warnings" do - result = ruby_exe('case 0; in a; end', args: '2>&1') + result = ruby_exe('1 => a', args: '2>&1') result.should =~ /is experimental/ result = ruby_exe('case 0; in a; end', options: '-W:no-experimental', args: '2>&1') |