Permalink
Browse files

Remove extre count, preheat already happens during setup

  • Loading branch information...
1 parent 92bae49 commit 9fdf606954a61658b166b48d795313c33957b2c1 @carlosantoniodasilva carlosantoniodasilva committed Oct 31, 2012
Showing with 0 additions and 1 deletion.
  1. +0 −1 activerecord/test/cases/batches_test.rb
@@ -138,7 +138,6 @@ def test_find_in_batches_should_use_any_column_as_primary_key
end
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
Subscriber.find_each(:batch_size => 1) do |subscriber|
assert_kind_of Subscriber, subscriber

0 comments on commit 9fdf606

Please sign in to comment.