diff options
author | Sebastian Martinez <sebastian@wyeworks.com> | 2011-03-26 11:42:26 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-03-26 12:09:04 -0300 |
commit | 45c233ef819dc7b67e259dd73f24721fec28b8c8 (patch) | |
tree | 7b35f2f44535f2ad0edc896bcd06be94e960e20a /activerecord/test/cases/calculations_test.rb | |
parent | eb8beb32b072f581720111d87855610403b3bb0c (diff) | |
download | rails-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/calculations_test.rb')
-rw-r--r-- | activerecord/test/cases/calculations_test.rb | 4 |
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 |