Skip to content

Commit

Permalink
Suppress "One-line pattern matching is experimental" warning
Browse files Browse the repository at this point in the history
  • Loading branch information
k-tsj committed Nov 1, 2020
1 parent e0e2492 commit 7282f31
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions spec/ruby/language/pattern_matching_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@

ruby_version_is "3.0" do
it "can be standalone assoc operator that deconstructs value" do
eval(<<-RUBY).should == [0, 1]
[0, 1] => [a, b]
[a, b]
RUBY
$VERBOSE, verbose = nil, $VERBOSE
begin
eval(<<-RUBY).should == [0, 1]
[0, 1] => [a, b]
[a, b]
RUBY
ensure
$VERBOSE = verbose
end
end
end

Expand Down

0 comments on commit 7282f31

Please sign in to comment.