diff options
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/associations/has_one_associations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/has_one_associations_test.rb b/activerecord/test/cases/associations/has_one_associations_test.rb index 15b37ad709..9b6757e256 100644 --- a/activerecord/test/cases/associations/has_one_associations_test.rb +++ b/activerecord/test/cases/associations/has_one_associations_test.rb @@ -577,7 +577,7 @@ class HasOneAssociationsTest < ActiveRecord::TestCase def test_has_one_loading_for_new_record post = Post.create!(author_id: 42, title: 'foo', body: 'bar') author = Author.new(id: 42) - assert author.post + assert_equal post, author.post end def test_has_one_relationship_cannot_have_a_counter_cache |