aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/calculations_test.rb
diff options
context:
space:
mode:
authorSebastian Martinez <sebastian@wyeworks.com>2011-03-27 19:12:28 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2011-03-27 21:47:38 -0300
commit245542ea2994961731be105db6c076256a22a7a9 (patch)
tree4780488d15d639f516d14b976bb5e077c6dbc3d9 /activerecord/test/cases/calculations_test.rb
parente6a8a3adaf08cc9d551b4a125aaa276812984be3 (diff)
downloadrails-245542ea2994961731be105db6c076256a22a7a9.tar.gz
rails-245542ea2994961731be105db6c076256a22a7a9.tar.bz2
rails-245542ea2994961731be105db6c076256a22a7a9.zip
Added new #update_column method.
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activerecord/test/cases/calculations_test.rb')
-rw-r--r--activerecord/test/cases/calculations_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/calculations_test.rb b/activerecord/test/cases/calculations_test.rb
index caf07a7357..c97f1ae634 100644
--- a/activerecord/test/cases/calculations_test.rb
+++ b/activerecord/test/cases/calculations_test.rb
@@ -311,8 +311,8 @@ class CalculationsTest < ActiveRecord::TestCase
def test_should_count_scoped_select_with_options
Account.update_all("credit_limit = NULL")
- Account.last.update_attribute('credit_limit', 49)
- Account.first.update_attribute('credit_limit', 51)
+ Account.last.update_column('credit_limit', 49)
+ Account.first.update_column('credit_limit', 51)
assert_equal 1, Account.scoped(:select => "credit_limit").count(:conditions => ['credit_limit >= 50'])
end