Permalink
Browse files

Sort here to make sure the order is ok.

  • Loading branch information...
arunagw committed Sep 5, 2011
1 parent 1458ada commit 1b1bd6c0c8d2919ab7e9b2fe6d07fec32d11f29c
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 1b1bd6c

Please sign in to comment.