mirror of
https://github.com/github/rails.git
synced 2026-01-10 07:07:54 -05:00
Remove warnings
This commit is contained in:
@@ -394,7 +394,6 @@ class PersistencesTest < ActiveRecord::TestCase
|
||||
|
||||
def test_update_attribute_with_one_updated
|
||||
t = Topic.first
|
||||
title = t.title
|
||||
t.update_attribute(:title, 'super_title')
|
||||
assert_equal 'super_title', t.title
|
||||
assert !t.changed?, "topic should not have changed"
|
||||
@@ -492,7 +491,7 @@ class PersistencesTest < ActiveRecord::TestCase
|
||||
|
||||
def test_update_column_with_one_changed_and_one_updated
|
||||
t = Topic.order('id').limit(1).first
|
||||
title, author_name = t.title, t.author_name
|
||||
author_name = t.author_name
|
||||
t.author_name = 'John'
|
||||
t.update_column(:title, 'super_title')
|
||||
assert_equal 'John', t.author_name
|
||||
|
||||
Reference in New Issue
Block a user