From 1c2c4c484e9d3b90c6338b26598efc1be16daa51 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 8 Jan 2014 12:43:27 +0000 Subject: [PATCH] Rails4: replace deprecated find_all_by_* at WikiPageTest git-svn-id: http://svn.redmine.org/redmine/trunk@12535 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/wiki_page_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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