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:
parent
190bb9af30
commit
b47fc8f618
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue