Project

General

Profile

« Previous | Next » 

Revision b7f89968

Added by marcandre (Marc-Andre Lafortune) about 5 years ago

  • spec/ruby: Tweak Enuemrator::Chain#rewind spec so that arity of block matches what is yielded

Calling and_yield(*args) adds an implicit expectation that all the args are passed to a block that can accept them, even though blocks that are not lambda-like don't mind extra arguments.
It so happens that this spec passed on Ruby 2.6.1 See [Bug #15613]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e