1
0
Fork 0
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:
Carlos Antonio da Silva 2012-10-31 12:54:07 -02:00
parent 92bae4929d
commit 9fdf606954

View file

@ -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