On 8/5/07, Scott Taylor [EMAIL PROTECTED] wrote:
I have a mock of an instance of a class which descends from Array:
class ArrayDescendent Array; end
#... in the specs...
@descendent = mock ArrayDescendent
How would I stub out ArrayDescendent#each, which is inherited from
Array, to
I have a mock of an instance of a class which descends from Array:
class ArrayDescendent Array; end
#... in the specs...
@descendent = mock ArrayDescendent
How would I stub out ArrayDescendent#each, which is inherited from
Array, to return multiple values successively? I could use