aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/finder_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/finder_test.rb')
-rw-r--r--activerecord/test/finder_test.rb6
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