diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-26 17:02:45 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-26 17:02:45 +0000 |
commit | a0bf0195a5c27c8c8493b1a44987154a9dc0d526 (patch) | |
tree | 9c48753be9e25512a3dd58fde92af218fb0f5db7 /activerecord/test/finder_test.rb | |
parent | c554a9cabaa3c8bbed5a0dccb381fdc6d516972d (diff) | |
download | rails-a0bf0195a5c27c8c8493b1a44987154a9dc0d526.tar.gz rails-a0bf0195a5c27c8c8493b1a44987154a9dc0d526.tar.bz2 rails-a0bf0195a5c27c8c8493b1a44987154a9dc0d526.zip |
Deprecation: count class method should be called with an options hash rather than two args for conditions and joins. Closes #6287.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5192 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/finder_test.rb')
-rw-r--r-- | activerecord/test/finder_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/finder_test.rb b/activerecord/test/finder_test.rb index bd72348916..ebc21b5e0c 100644 --- a/activerecord/test/finder_test.rb +++ b/activerecord/test/finder_test.rb @@ -249,9 +249,9 @@ class FinderTest < Test::Unit::TestCase end def test_count - assert_equal(0, Entrant.count("id > 3")) - assert_equal(1, Entrant.count(["id > ?", 2])) - assert_equal(2, Entrant.count(["id > ?", 1])) + assert_equal(0, Entrant.count(:conditions => "id > 3")) + assert_equal(1, Entrant.count(:conditions => ["id > ?", 2])) + assert_equal(2, Entrant.count(:conditions => ["id > ?", 1])) end def test_count_by_sql |