Rails4: replace deprecated find_all_by_* at WikiPageTest

git-svn-id: http://svn.redmine.org/redmine/trunk@12535 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-08 12:43:27 +00:00
parent 143a1d8ec3
commit 1c2c4c484e
1 changed files with 2 additions and 2 deletions

View File

@ -117,8 +117,8 @@ class WikiPageTest < ActiveSupport::TestCase
page.destroy
assert_nil WikiPage.find_by_id(2)
children = WikiPage.find_all_by_id(child_ids)
assert_equal child_ids.size, children.size
children = WikiPage.where(:id => child_ids)
assert_equal child_ids.size, children.count
children.each do |child|
assert_nil child.parent_id
end