aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/has_many_through_associations_test.rb
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2013-01-18 05:06:42 -0800
committerGuillermo Iguaran <guilleiguaran@gmail.com>2013-01-18 05:06:42 -0800
commit637a7d9d357a0f3f725b0548282ca8c5e7d4af4a (patch)
treed0b3307df008377ba4b0449866d45c1a66556991 /activerecord/test/cases/associations/has_many_through_associations_test.rb
parent5937bd02dee112646469848d7fe8a8bfcef5b4c1 (diff)
parent7baecc48028e2d0cb57936ad10b9102ed129c9f9 (diff)
downloadrails-637a7d9d357a0f3f725b0548282ca8c5e7d4af4a.tar.gz
rails-637a7d9d357a0f3f725b0548282ca8c5e7d4af4a.tar.bz2
rails-637a7d9d357a0f3f725b0548282ca8c5e7d4af4a.zip
Merge pull request #8989 from robertomiranda/use-rails-4-find-by
Replace deprecated find_by_* with find_by
Diffstat (limited to 'activerecord/test/cases/associations/has_many_through_associations_test.rb')
-rw-r--r--activerecord/test/cases/associations/has_many_through_associations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/has_many_through_associations_test.rb b/activerecord/test/cases/associations/has_many_through_associations_test.rb
index af91fb2920..0e9af3acec 100644
--- a/activerecord/test/cases/associations/has_many_through_associations_test.rb
+++ b/activerecord/test/cases/associations/has_many_through_associations_test.rb
@@ -524,7 +524,7 @@ class HasManyThroughAssociationsTest < ActiveRecord::TestCase
def test_dynamic_find_should_respect_association_include
# SQL error in sort clause if :include is not included
# due to Unknown column 'comments.id'
- assert Person.find(1).posts_with_comments_sorted_by_comment_id.find_by_title('Welcome to the weblog')
+ assert Person.find(1).posts_with_comments_sorted_by_comment_id.find_by(title: 'Welcome to the weblog')
end
def test_count_with_include_should_alias_join_table