aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations
diff options
context:
space:
mode:
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
commit3cc7223f3d57f31affdbabccc86cbc8b6589e2c8 (patch)
treecb9a9f810ef2150a0c4b71a950a82178d219580c /activerecord/test/cases/associations
parent90f00142e6ff6a674f89c51a6784309b24b246bf (diff)
downloadrails-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.rb4
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