diff options
author | Gabe da Silveira <gabe@websaviour.com> | 2009-12-02 15:28:54 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-12-03 23:25:11 -0800 |
commit | 32395899d7c97f69b508b7d7f9b7711f28586679 (patch) | |
tree | ca1ca850101571c2251334a991ff7a419e9cfbc4 /activerecord/test/cases/base_test.rb | |
parent | e55284e8256461fc2440c41548ee9b4216f96b47 (diff) | |
download | rails-32395899d7c97f69b508b7d7f9b7711f28586679.tar.gz rails-32395899d7c97f69b508b7d7f9b7711f28586679.tar.bz2 rails-32395899d7c97f69b508b7d7f9b7711f28586679.zip |
Replace reset_counter_cache with reset_counters that has API inline with existing update_counters method
[#1211 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activerecord/test/cases/base_test.rb')
-rwxr-xr-x | activerecord/test/cases/base_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index 737ca01d46..4c16cb4804 100755 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -680,13 +680,13 @@ class BasicsTest < ActiveRecord::TestCase assert_equal -2, Topic.find(2).replies_count end - def test_reset_counter_cache + def test_reset_counters assert_equal 1, Topic.find(1).replies_count Topic.increment_counter("replies_count", 1) assert_equal 2, Topic.find(1).replies_count - Topic.reset_counter_cache(:replies) + Topic.reset_counters(1, :replies) assert_equal 1, Topic.find(1).replies_count end |