diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-01-06 18:43:48 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-01-06 18:43:48 -0300 |
commit | 79456619cf527cd00474702f9d384b66209f20dd (patch) | |
tree | 4f84715b00b6367e4caf598094a730e3cdb85bd3 /activerecord/test/cases/persistence_test.rb | |
parent | c147dd7ddd206f6c2d80d8957ee9fa575b00b13c (diff) | |
download | rails-79456619cf527cd00474702f9d384b66209f20dd.tar.gz rails-79456619cf527cd00474702f9d384b66209f20dd.tar.bz2 rails-79456619cf527cd00474702f9d384b66209f20dd.zip |
Remove warnings
Diffstat (limited to 'activerecord/test/cases/persistence_test.rb')
-rw-r--r-- | activerecord/test/cases/persistence_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/test/cases/persistence_test.rb b/activerecord/test/cases/persistence_test.rb index 00dc1f6d72..db1ba3549f 100644 --- a/activerecord/test/cases/persistence_test.rb +++ b/activerecord/test/cases/persistence_test.rb @@ -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 |