mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove extre count, preheat already happens during setup
This commit is contained in:
parent
92bae4929d
commit
9fdf606954
1 changed files with 0 additions and 1 deletions
|
@ -138,7 +138,6 @@ class EachTest < ActiveRecord::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_find_in_batches_should_use_any_column_as_primary_key_when_start_is_not_specified
|
def test_find_in_batches_should_use_any_column_as_primary_key_when_start_is_not_specified
|
||||||
Subscriber.count('nick') # preheat arel's table cache
|
|
||||||
assert_queries(Subscriber.count + 1) do
|
assert_queries(Subscriber.count + 1) do
|
||||||
Subscriber.find_each(:batch_size => 1) do |subscriber|
|
Subscriber.find_each(:batch_size => 1) do |subscriber|
|
||||||
assert_kind_of Subscriber, subscriber
|
assert_kind_of Subscriber, subscriber
|
||||||
|
|
Loading…
Reference in a new issue