Permalink
Browse files

Sort here to make sure the order is ok.

  • Loading branch information...
1 parent 7e16394 commit 76e94016a43c8c86eef869115ead22e93dbd1241 @arunagw arunagw committed Sep 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/batches_test.rb
@@ -128,7 +128,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 76e9401

Please sign in to comment.