aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations_test.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-07-24 20:20:03 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-07-24 20:20:26 -0300
commit2d9e5a26a10e5f83f9b3ac465bd45b2e15a0bc2a (patch)
tree08bd5ed78f12c3aecac9295889874cb9b0956294 /activerecord/test/cases/associations_test.rb
parentda84ccb6f04080d0f18f9bce35f773f193b1770b (diff)
downloadrails-2d9e5a26a10e5f83f9b3ac465bd45b2e15a0bc2a.tar.gz
rails-2d9e5a26a10e5f83f9b3ac465bd45b2e15a0bc2a.tar.bz2
rails-2d9e5a26a10e5f83f9b3ac465bd45b2e15a0bc2a.zip
Deprecate update_column in favor of update_columns.
Closes #1190
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 1d0550afaf..1298710c75 100644
--- a/activerecord/test/cases/associations_test.rb
+++ b/activerecord/test/cases/associations_test.rb
@@ -67,7 +67,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_columns(name: 'Deck')
ship.parts.send(:load_target)
assert_equal 'Deck', ship.parts[0].name
end
@@ -176,7 +176,7 @@ class AssociationProxyTest < ActiveRecord::TestCase
david = developers(:david)
assert !david.projects.loaded?
- david.update_column(:created_at, Time.now)
+ david.update_columns(created_at: Time.now)
assert !david.projects.loaded?
end