aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations_test.rb
diff options
context:
space:
mode:
authorSebastian Martinez <sebastian@wyeworks.com>2011-03-27 18:52:21 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2011-03-27 18:55:30 -0300
commit0e1fed537a7699a7ded02f77b71d222d7207c5ad (patch)
treea6d0acc8b1198593c3ca830755cbb643140de7d2 /activerecord/test/cases/associations_test.rb
parenteea6a65488e3f590d4d9cd922f54febb151799ad (diff)
downloadrails-0e1fed537a7699a7ded02f77b71d222d7207c5ad.tar.gz
rails-0e1fed537a7699a7ded02f77b71d222d7207c5ad.tar.bz2
rails-0e1fed537a7699a7ded02f77b71d222d7207c5ad.zip
Revert "Removed #update_attribute method. New #update_column method."
This reverts commit 45c233ef819dc7b67e259dd73f24721fec28b8c8. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activerecord/test/cases/associations_test.rb')
-rw-r--r--activerecord/test/cases/associations_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/associations_test.rb b/activerecord/test/cases/associations_test.rb
index 04f628a398..47b8e48582 100644
--- a/activerecord/test/cases/associations_test.rb
+++ b/activerecord/test/cases/associations_test.rb
@@ -66,7 +66,7 @@ class AssociationsTest < ActiveRecord::TestCase
ship = Ship.create!(:name => "The good ship Dollypop")
part = ship.parts.create!(:name => "Mast")
part.mark_for_destruction
- ShipPart.find(part.id).update_column(:name, 'Deck')
+ ShipPart.find(part.id).update_attribute(:name, 'Deck')
ship.parts.send(:load_target)
assert_equal 'Deck', ship.parts[0].name
end
@@ -170,7 +170,7 @@ class AssociationProxyTest < ActiveRecord::TestCase
david = developers(:david)
assert !david.projects.loaded?
- david.update_column(:created_at, Time.now)
+ david.update_attribute(:created_at, Time.now)
assert !david.projects.loaded?
end