File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -99,14 +99,14 @@ def Warning.warn(msg)
9999
100100 ruby_version_is "3.4" do
101101 it "warns when category is :strict_unused_block but Warning[:strict_unused_block] is false" do
102- warn_experimental = Warning [ :strict_unused_block ]
102+ warn_strict_unused_block = Warning [ :strict_unused_block ]
103103 Warning [ :strict_unused_block ] = true
104104 begin
105105 -> {
106106 Warning . warn ( "foo" , category : :strict_unused_block )
107107 } . should complain ( "foo" )
108108 ensure
109- Warning [ :strict_unused_block ] = warn_experimental
109+ Warning [ :strict_unused_block ] = warn_strict_unused_block
110110 end
111111 end
112112 end
@@ -137,14 +137,14 @@ def Warning.warn(msg)
137137
138138 ruby_version_is "3.4" do
139139 it "doesn't print message when category is :strict_unused_block but Warning[:strict_unused_block] is false" do
140- warn_experimental = Warning [ :strict_unused_block ]
140+ warn_strict_unused_block = Warning [ :strict_unused_block ]
141141 Warning [ :strict_unused_block ] = false
142142 begin
143143 -> {
144144 Warning . warn ( "foo" , category : :strict_unused_block )
145145 } . should_not complain
146146 ensure
147- Warning [ :strict_unused_block ] = warn_experimental
147+ Warning [ :strict_unused_block ] = warn_strict_unused_block
148148 end
149149 end
150150 end
Original file line number Diff line number Diff line change @@ -1621,12 +1621,12 @@ def m_that_does_not_use_block
16211621 # ensure that warning is emitted
16221622 -> { m_that_does_not_use_block { } } . should complain ( verbose : true )
16231623
1624- warn_experimental = Warning [ :strict_unused_block ]
1624+ warn_strict_unused_block = Warning [ :strict_unused_block ]
16251625 Warning [ :strict_unused_block ] = false
16261626 begin
16271627 -> { m_that_does_not_use_block { } } . should_not complain ( verbose : true )
16281628 ensure
1629- Warning [ :strict_unused_block ] = warn_experimental
1629+ Warning [ :strict_unused_block ] = warn_strict_unused_block
16301630 end
16311631 end
16321632
@@ -1635,14 +1635,14 @@ def m_that_does_not_use_block
16351635 42
16361636 end
16371637
1638- warn_experimental = Warning [ :strict_unused_block ]
1638+ warn_strict_unused_block = Warning [ :strict_unused_block ]
16391639 Warning [ :strict_unused_block ] = true
16401640 begin
16411641 -> {
16421642 m_that_does_not_use_block { }
16431643 } . should complain ( /the block passed to 'm_that_does_not_use_block' defined at .+ may be ignored/ )
16441644 ensure
1645- Warning [ :strict_unused_block ] = warn_experimental
1645+ Warning [ :strict_unused_block ] = warn_strict_unused_block
16461646 end
16471647 end
16481648 end
You can’t perform that action at this time.
0 commit comments