diff options
author | robertomiranda <rjmaltamar@gmail.com> | 2013-01-18 07:56:05 -0500 |
---|---|---|
committer | robertomiranda <rjmaltamar@gmail.com> | 2013-01-18 07:56:05 -0500 |
commit | 7baecc48028e2d0cb57936ad10b9102ed129c9f9 (patch) | |
tree | 77e65e64c592e9f75cb849f851eb4dedb376c2e1 /activerecord/test/cases/associations/join_model_test.rb | |
parent | 4095c08729a188e6ebc24f86d60a10bc01053d9b (diff) | |
download | rails-7baecc48028e2d0cb57936ad10b9102ed129c9f9.tar.gz rails-7baecc48028e2d0cb57936ad10b9102ed129c9f9.tar.bz2 rails-7baecc48028e2d0cb57936ad10b9102ed129c9f9.zip |
User Rails 4 find_by
Diffstat (limited to 'activerecord/test/cases/associations/join_model_test.rb')
-rw-r--r-- | activerecord/test/cases/associations/join_model_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/join_model_test.rb b/activerecord/test/cases/associations/join_model_test.rb index 10ec33be75..368d862f4e 100644 --- a/activerecord/test/cases/associations/join_model_test.rb +++ b/activerecord/test/cases/associations/join_model_test.rb @@ -448,7 +448,7 @@ class AssociationsJoinModelTest < ActiveRecord::TestCase end def test_has_many_through_uses_correct_attributes - assert_nil posts(:thinking).tags.find_by_name("General").attributes["tag_id"] + assert_nil posts(:thinking).tags.find_by(name: "General").attributes["tag_id"] end def test_associating_unsaved_records_with_has_many_through |