E
Edgardo Hames
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
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