]> source.dussan.org Git - redmine.git/commitdiff
Rails4: replace deprecated Relation#first with finder options at MessagesControllerTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 11 Jan 2014 10:13:05 +0000 (10:13 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 11 Jan 2014 10:13:05 +0000 (10:13 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12639 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/messages_controller_test.rb

index a8000ca1bdd1666b5ff61057ae41b4cc87133501..c78828b521e33f1978dda42b604e69d6403db0e9 100644 (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