Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Sort here to make sure the order is ok.

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