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:
parent
56a40b3579
commit
205e727565
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue