ruby-changes:63499
From: Kazuki <ko1@a...>
Date: Sun, 1 Nov 2020 19:02:28 +0900 (JST)
Subject: [ruby-changes:63499] 963359a762 (master): Use the suppress_warning helper instead of doing it manually
https://git.ruby-lang.org/ruby.git/commit/?id=963359a762 From 963359a7622fb064331504a29a8bf65283d25551 Mon Sep 17 00:00:00 2001 From: Kazuki Tsujimoto <kazuki@c...> Date: Sun, 1 Nov 2020 18:58:52 +0900 Subject: Use the suppress_warning helper instead of doing it manually diff --git a/spec/ruby/language/pattern_matching_spec.rb b/spec/ruby/language/pattern_matching_spec.rb index 33f7aa0..e82b0f5 100644 --- a/spec/ruby/language/pattern_matching_spec.rb +++ b/spec/ruby/language/pattern_matching_spec.rb @@ -11,14 +11,11 @@ ruby_version_is "2.7" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/language/pattern_matching_spec.rb#L11 ruby_version_is "3.0" do it "can be standalone assoc operator that deconstructs value" do - $VERBOSE, verbose = nil, $VERBOSE - begin + suppress_warning do eval(<<-RUBY).should == [0, 1] [0, 1] => [a, b] [a, b] RUBY - ensure - $VERBOSE = verbose end end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/