Permalink
Browse files

Merge pull request #2867 from arunagw/batches_test_pg_3-1-stable

Need to make sure about order here.
  • Loading branch information...
2 parents 1458ada + 1b1bd6c commit 0b7a1f822df00b6d2b05b6bc39820c1d833d04c1 @jonleighton jonleighton committed Sep 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/batches_test.rb
@@ -114,7 +114,7 @@ def test_find_in_batches_should_ignore_the_order_default_scope
end
def test_find_in_batches_should_not_ignore_the_default_scope_if_it_is_other_then_order
- special_posts_ids = SpecialPostWithDefaultScope.all.map(&:id)
+ special_posts_ids = SpecialPostWithDefaultScope.all.map(&:id).sort
posts = []
SpecialPostWithDefaultScope.find_in_batches do |batch|
posts.concat(batch)

0 comments on commit 0b7a1f8

Please sign in to comment.