diff --git a/test/unit/wiki_page_test.rb b/test/unit/wiki_page_test.rb index 1f66cae7d..b7d6130ed 100644 --- a/test/unit/wiki_page_test.rb +++ b/test/unit/wiki_page_test.rb @@ -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