Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 350 Bytes

HINTS.md

File metadata and controls

13 lines (10 loc) · 350 Bytes

Advanced

It is typical to call #to_enum when defining methods for a generic Enumerable, in case no block is passed.

Here is an additional test you could add:

def test_no_block_is_passed
  skip
  result = [1, 2, 3].accumulate
  assert_instance_of Enumerator, result
end