Rails4: replace deprecated find_all_by_* at MessageTest

git-svn-id: http://svn.redmine.org/redmine/trunk@12496 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-07 15:43:05 +00:00
parent 8dc4992973
commit d884d09cc2
1 changed files with 1 additions and 1 deletions

View 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