Spec Results

Designed for use with JUnit and Ant.

Class spec.ruby.core.enumerable.grep

NameTestsErrorsFailuresSkippedSkip %Time(s)
grep70000%0.026

Tests

NameStatusTypeTime(s)
Enumerable#grep grep without a block should return an array of all elements === patternSuccess0.006
Enumerable#grep grep with a block should return an array of elements === pattern passed through blockSuccess0.004
Enumerable#grep grep the enumerable (rubycon legacy)Success0.004
Enumerable#grep can use $~ in the block when used with a RegexpSuccess0.001
Enumerable#grep with a block returns an Array of matched elements that mapped by the blockSuccess0.001
Enumerable#grep with a block calls the block with gathered array when yielded with multiple argumentsSuccess0.001
Enumerable#grep with a block raises an ArgumentError when not given a patternSuccess0.001
Properties »