[ruby-cvs:74199] marcandre:r67095 (trunk): * spec/ruby: Tweak Enuemrator::Chain#rewind spec so that arity of block matches what is yielded

marcandre at ruby-lang.org marcandre at ruby-lang.org
Wed Feb 20 13:39:56 JST 2019


marcandre	2019-02-20 13:39:56 +0900 (Wed, 20 Feb 2019)

  New Revision: 67095

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67095

  Log:
    * 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]

  Modified files:
    trunk/spec/ruby/core/enumerator/chain/rewind_spec.rb


More information about the ruby-cvs mailing list