The tests don't pass for me using the suggestion. A little google search seems to indicate that there was unintentional default behavior for some version of Ruby as Tyler describes, but the new official 2.0 behavior and docs seem to indicate the that the #to_enum block is only for the purpose of optimizing #size.