diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-08 12:43:27 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-08 12:43:27 +0000 |
commit | 1c2c4c484e9d3b90c6338b26598efc1be16daa51 (patch) | |
tree | 36cc0077257a47d98eda7b312e805b46d53e2505 | |
parent | 143a1d8ec301a38149d81687b52a3abca3186b95 (diff) | |
download | redmine-1c2c4c484e9d3b90c6338b26598efc1be16daa51.tar.gz redmine-1c2c4c484e9d3b90c6338b26598efc1be16daa51.zip |
Rails4: replace deprecated find_all_by_* at WikiPageTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12535 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/unit/wiki_page_test.rb | 4 |
1 files 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 |