]> source.dussan.org Git - redmine.git/commitdiff
Rails4: replace deprecated find_all_by_* at MessageTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 7 Jan 2014 15:43:05 +0000 (15:43 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 7 Jan 2014 15:43:05 +0000 (15:43 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12496 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/message_test.rb

index ba4cbe048f62b2a1017998af58b31f9b8ea5c870..8c764d3468c100dc60511e0fe010eea4a855484c 100644 (file)
@@ -115,7 +115,7 @@ class MessageTest < ActiveSupport::TestCase
     board.reload
 
     # Replies deleted
-    assert Message.find_all_by_parent_id(1).empty?
+    assert Message.where(:parent_id => 1).empty?
     # Checks counters
     assert_equal topics_count - 1, board.topics_count
     assert_equal messages_count - 3, board.messages_count