Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Sort here to make sure the order is ok.

  • Loading branch information...
commit 76e94016a43c8c86eef869115ead22e93dbd1241 1 parent 7e16394
Arun Agrawal arunagw authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/test/cases/batches_test.rb
2  activerecord/test/cases/batches_test.rb
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.