mirror of https://github.com/rails/rails
Fix: batch test assertion order
Co-authored-by: Chedli Bourguiba <chaadow@users.noreply.github.com>
This commit is contained in:
parent
41888b1c79
commit
75bdf05d87
|
@ -390,7 +390,7 @@ class EachTest < ActiveRecord::TestCase
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue