Skip to content
Permalink
Browse files

tag some new specs

  • Loading branch information
alex committed May 22, 2013
1 parent 33433ac commit 881a14598d58df17d17195fe6b752c03d912ef09
Showing with 8 additions and 0 deletions.
  1. +8 −0 spec/tags/core/enumerable/chunk_tags.txt
@@ -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.
You can’t perform that action at this time.