Rails4: replace deprecated find_all_by_* at WikiPageTest

git-svn-id: http://svn.redmine.org/redmine/trunk@12545 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-09 02:37:21 +00:00
parent ecda4d33e8
commit 4245a88542
1 changed files with 2 additions and 2 deletions

View File

@ -106,8 +106,8 @@ class WikiPageTest < ActiveSupport::TestCase
page.destroy
assert_nil WikiPage.find_by_id(1)
# make sure that page content and its history are deleted
assert WikiContent.find_all_by_page_id(1).empty?
assert WikiContent.versioned_class.find_all_by_page_id(1).empty?
assert_equal 0, WikiContent.where(:page_id => 1).count
assert_equal 0, WikiContent.versioned_class.where(:page_id => 1).count
end
def test_destroy_should_not_nullify_children