From: Edgardo Hames Date: 2009-12-24T09:15:13+09:00 Subject: How to test an iterator method Hi guys, I have a class that looks like this class MyClass def each_object # do something really fun end end I'd like to write some tests for the #each_object method but don't know how to. Could you please suggest a way to test methods that iterate over the elements of a collection? Thanks, Edgardo