diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-07 15:43:05 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-07 15:43:05 +0000 |
commit | d884d09cc252cc1cd8f6764678cd1b1229b168f8 (patch) | |
tree | fd864b78cfd34594f560254ba1f3f20197bb314a /test/unit/message_test.rb | |
parent | 8dc4992973c4fa4c7f4b20e4315f82bb5689cf88 (diff) | |
download | redmine-d884d09cc252cc1cd8f6764678cd1b1229b168f8.tar.gz redmine-d884d09cc252cc1cd8f6764678cd1b1229b168f8.zip |
Rails4: replace deprecated find_all_by_* at MessageTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12496 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/message_test.rb')
-rw-r--r-- | test/unit/message_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/message_test.rb b/test/unit/message_test.rb index ba4cbe048..8c764d346 100644 --- a/test/unit/message_test.rb +++ b/test/unit/message_test.rb @@ -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 |