diff options
Diffstat (limited to 'activerecord/test/method_scoping_test.rb')
-rw-r--r-- | activerecord/test/method_scoping_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/method_scoping_test.rb b/activerecord/test/method_scoping_test.rb index bceb3869a6..ee4a52df1d 100644 --- a/activerecord/test/method_scoping_test.rb +++ b/activerecord/test/method_scoping_test.rb @@ -57,7 +57,7 @@ class MethodScopingTest < Test::Unit::TestCase Developer.with_scope(:find => { :conditions => 'salary = 100000' }) do assert_equal 8, Developer.count - assert_equal 1, Developer.count("name LIKE 'fixture_1%'") + assert_equal 1, Developer.count(:conditions => "name LIKE 'fixture_1%'") end end @@ -74,7 +74,7 @@ class MethodScopingTest < Test::Unit::TestCase def test_scoped_count_include # with the include, will retrieve only developers for the given project Developer.with_scope(:find => { :include => :projects }) do - assert_equal 1, Developer.count('projects.id = 2') + assert_equal 1, Developer.count(:conditions => 'projects.id = 2') end end |