diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-09 02:37:21 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-09 02:37:21 +0000 |
commit | 4245a8854272d20932bec3e65ae014ed61a3680a (patch) | |
tree | 2fe248ebc69124468c3952029b0b8b25ae8b57b6 /test/unit/wiki_page_test.rb | |
parent | ecda4d33e83be9971159713934b82e960e2e01ca (diff) | |
download | redmine-4245a8854272d20932bec3e65ae014ed61a3680a.tar.gz redmine-4245a8854272d20932bec3e65ae014ed61a3680a.zip |
Rails4: replace deprecated find_all_by_* at WikiPageTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12545 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/wiki_page_test.rb')
-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 b7d6130ed..7701bdfa6 100644 --- a/test/unit/wiki_page_test.rb +++ b/test/unit/wiki_page_test.rb @@ -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 |