From 42b45b1980066fdc565aa2d3900da74bf97bc333 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Wed, 31 Dec 2014 17:04:08 +0900 Subject: [PATCH] Fix warning: assigned but unused variable - post --- .../test/cases/associations/has_one_associations_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ def test_has_one_autosave_with_primary_key_manually_set 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