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:
parent
143a1d8ec3
commit
1c2c4c484e
|
@ -117,8 +117,8 @@ class WikiPageTest < ActiveSupport::TestCase
|
||||||
page.destroy
|
page.destroy
|
||||||
assert_nil WikiPage.find_by_id(2)
|
assert_nil WikiPage.find_by_id(2)
|
||||||
|
|
||||||
children = WikiPage.find_all_by_id(child_ids)
|
children = WikiPage.where(:id => child_ids)
|
||||||
assert_equal child_ids.size, children.size
|
assert_equal child_ids.size, children.count
|
||||||
children.each do |child|
|
children.each do |child|
|
||||||
assert_nil child.parent_id
|
assert_nil child.parent_id
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue