diff options
author | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2013-06-27 19:56:30 +0200 |
---|---|---|
committer | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2013-06-28 00:24:11 +0200 |
commit | 3cc7223f3d57f31affdbabccc86cbc8b6589e2c8 (patch) | |
tree | cb9a9f810ef2150a0c4b71a950a82178d219580c /activerecord/test/cases/associations | |
parent | 90f00142e6ff6a674f89c51a6784309b24b246bf (diff) | |
download | rails-3cc7223f3d57f31affdbabccc86cbc8b6589e2c8.tar.gz rails-3cc7223f3d57f31affdbabccc86cbc8b6589e2c8.tar.bz2 rails-3cc7223f3d57f31affdbabccc86cbc8b6589e2c8.zip |
Remove depreacted finders
They were deprecated in 4.0, planned to remove in 4.1
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r-- | activerecord/test/cases/associations/eager_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/associations/eager_test.rb b/activerecord/test/cases/associations/eager_test.rb index 1cfaf552af..846ef05c7d 100644 --- a/activerecord/test/cases/associations/eager_test.rb +++ b/activerecord/test/cases/associations/eager_test.rb @@ -554,9 +554,9 @@ class EagerAssociationTest < ActiveRecord::TestCase assert_equal 2, posts.size count = ActiveSupport::Deprecation.silence do - Post.count(:include => [ :author, :comments ], :limit => 2, :conditions => [ "authors.name = ?", 'David' ]) + Post.includes(:author, :comments).limit(2).references(:author).where("authors.name = ?", 'David').count end - assert_equal count, posts.size + assert_equal posts.size, count end def test_eager_with_has_many_and_limit_and_high_offset |