Enumerable#each_slice implementation with specs