aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/has_and_belongs_to_many_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/has_and_belongs_to_many_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/has_and_belongs_to_many_associations_test.rb')
-rw-r--r--activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
index 73d02c9676..f4d14853d3 100644
--- a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
+++ b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
@@ -604,7 +604,7 @@ class HasAndBelongsToManyAssociationsTest < ActiveRecord::TestCase
project = SpecialProject.create("name" => "Special Project")
assert developer.save
developer.projects << project
- developer.update_attribute("name", "Bruza")
+ developer.update_column("name", "Bruza")
assert_equal 1, Developer.connection.select_value(<<-end_sql).to_i
SELECT count(*) FROM developers_projects
WHERE project_id = #{project.id}