aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2014-12-31 17:04:08 +0900
committerRyuta Kamizono <kamipo@gmail.com>2014-12-31 17:04:08 +0900
commit42b45b1980066fdc565aa2d3900da74bf97bc333 (patch)
treebc4300ce3f8f18305b5d7094292924839c31d8ed /activerecord/test
parentca605fa47ac9ca00452c4e31ec3657cb1edec8d0 (diff)
downloadrails-42b45b1980066fdc565aa2d3900da74bf97bc333.tar.gz
rails-42b45b1980066fdc565aa2d3900da74bf97bc333.tar.bz2
rails-42b45b1980066fdc565aa2d3900da74bf97bc333.zip
Fix warning: assigned but unused variable - post
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/associations/has_one_associations_test.rb2
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