]> source.dussan.org Git - redmine.git/commitdiff
Rails4: replace deprecated find_all_by_* at ProjectTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 Jan 2014 05:09:10 +0000 (05:09 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 Jan 2014 05:09:10 +0000 (05:09 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12559 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/project_test.rb

index 85dbb317d9009c57acf2932c842d2e3cc6ce7b30..db1fa2f8b72cf882ab4a7725968c5e69cff016a8 100644 (file)
@@ -224,7 +224,7 @@ class ProjectTest < ActiveSupport::TestCase
     assert_nothing_raised do
       Project.find(1).destroy
     end
-    assert Issue.find_all_by_id(issues.map(&:id)).empty?
+    assert_equal 0, Issue.where(:id => issues.map(&:id)).count
   end
 
   def test_destroying_root_projects_should_clear_data