Rails4: replace deprecated Relation#first with finder options at MessagesControllerTest

git-svn-id: http://svn.redmine.org/redmine/trunk@12639 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-11 10:13:05 +00:00
parent 190bb9af30
commit b47fc8f618
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class MessagesControllerTest < ActionController::TestCase
assert_template 'show'
replies = assigns(:replies)
assert_not_nil replies
assert !replies.include?(message.children.first(:order => 'id'))
assert !replies.include?(message.children.order('id').first)
assert replies.include?(message.children.order('id').last)
end