summaryrefslogtreecommitdiffstats
path: root/test/functional/messages_controller_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-11 10:13:05 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-11 10:13:05 +0000
commitb47fc8f61831819a4b170ce5fafc08553fbf6508 (patch)
treef0ba60d89e87fa0d0e328ff28427c95ec9a68f08 /test/functional/messages_controller_test.rb
parent190bb9af30481bb3cbae3f7c193379495b97efbc (diff)
downloadredmine-b47fc8f61831819a4b170ce5fafc08553fbf6508.tar.gz
redmine-b47fc8f61831819a4b170ce5fafc08553fbf6508.zip
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
Diffstat (limited to 'test/functional/messages_controller_test.rb')
-rw-r--r--test/functional/messages_controller_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/messages_controller_test.rb b/test/functional/messages_controller_test.rb
index a8000ca1b..c78828b52 100644
--- a/test/functional/messages_controller_test.rb
+++ b/test/functional/messages_controller_test.rb
@@ -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