Skip to content

Commit

Permalink
TEST: remove invalid yield usage from spec example
Browse files Browse the repository at this point in the history
Using yield outside method definition is invalid, and
with ruby3.3.0dev, this usage in spec example file causes
spec testsuite failure.

So to make test pass also on ruby3.3, remove this usage.

Fixes #1514 .
  • Loading branch information
mtasaka committed Nov 14, 2023
1 parent 2d197a3 commit d840ee1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions spec/handlers/examples/yield_handler_001.rb.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
class Testing
# Ignore yields outside methods
yield x, y, z

# Should document this
def mymethod
yield
Expand Down

0 comments on commit d840ee1

Please sign in to comment.