From b47fc8f61831819a4b170ce5fafc08553fbf6508 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 11 Jan 2014 10:13:05 +0000 Subject: 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 --- test/functional/messages_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/functional/messages_controller_test.rb') 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 -- cgit v1.2.3