Skip to content

Commit

Permalink
tag some new specs
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed May 22, 2013
1 parent 33433ac commit 881a145
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/tags/core/enumerable/chunk_tags.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,11 @@ fails:Enumerable#chunk sets a 2-element Array if the block returned :_alone
fails:Enumerable#chunk rejects 2-element Arrays if the block returned nil
fails:Enumerable#chunk rejects 2-element Arrays if the block returned :_separator
fails:Enumerable#chunk raises an RuntimeError if the block returned a Symbol that is undefined but reserved format (first character is an underscore)
fails:Enumerable#chunk yields the current element and the current chunk to the block
fails:Enumerable#chunk returns elements of the Enumerable in an Array of Arrays, [v, ary], where 'ary' contains the consecutive elements for which the block returned the value 'v'
fails:Enumerable#chunk returns elements for which the block returns :_alone in separate Arrays
fails:Enumerable#chunk does not return elements for which the block returns :_separator
fails:Enumerable#chunk does not return elements for which the block returns nil
fails:Enumerable#chunk raises a RuntimeError if the block returns a Symbol starting with an underscore other than :_alone or :_separator
fails:Enumerable#chunk yields an element and an object value-equal but not identical to the object passed to #chunk
fails:Enumerable#chunk does not yield the object passed to #chunk if it is nil

0 comments on commit 881a145

Please sign in to comment.