aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations_test.rb
diff options
context:
space:
mode:
authorSebastian Martinez <sebastian@wyeworks.com>2011-03-26 11:42:26 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2011-03-26 12:09:04 -0300
commit45c233ef819dc7b67e259dd73f24721fec28b8c8 (patch)
tree7b35f2f44535f2ad0edc896bcd06be94e960e20a /activerecord/test/cases/associations_test.rb
parenteb8beb32b072f581720111d87855610403b3bb0c (diff)
downloadrails-45c233ef819dc7b67e259dd73f24721fec28b8c8.tar.gz
rails-45c233ef819dc7b67e259dd73f24721fec28b8c8.tar.bz2
rails-45c233ef819dc7b67e259dd73f24721fec28b8c8.zip
Removed #update_attribute method. New #update_column method.
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 47b8e48582..04f628a398 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_attribute(:name, 'Deck')
+ ShipPart.find(part.id).update_column(: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_attribute(:created_at, Time.now)
+ david.update_column(:created_at, Time.now)
assert !david.projects.loaded?
end