Skip to content

Commit

Permalink
Fix: batch test assertion order
Browse files Browse the repository at this point in the history
Co-authored-by: Chedli Bourguiba <chaadow@users.noreply.github.com>
  • Loading branch information
2 people authored and dhh committed May 14, 2024
1 parent 873b167 commit 4b51f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/test/cases/batches_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def test_in_batches_touch_all_affect_all_records
assert_queries_count(6 + 6) do # 6 selects, 6 updates
Developer.in_batches(of: 2).touch_all(time: time)
end
assert_equal Developer.all.pluck(:updated_at), [time] * Developer.count
assert_equal [time] * Developer.count, Developer.all.pluck(:updated_at)
end

def test_in_batches_touch_all_returns_rows_affected
Expand Down

0 comments on commit 4b51f4b

Please sign in to comment.