Rails4: replace deprecated find_all_by_* at ProjectTest

git-svn-id: http://svn.redmine.org/redmine/trunk@12559 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-09 05:09:10 +00:00
parent 56a40b3579
commit 205e727565
1 changed files with 1 additions and 1 deletions

View 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