From 7c10f41ce398b393f7a09ea25e9b51184f59106d Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 10 Jan 2014 01:21:07 +0000 Subject: [PATCH] Rails4: replace deprecated Relation#first with finder options at AttachmentsControllerTest git-svn-id: http://svn.redmine.org/redmine/trunk@12578 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/attachments_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/attachments_controller_test.rb b/test/functional/attachments_controller_test.rb index 44abadd10..77a1a076c 100644 --- a/test/functional/attachments_controller_test.rb +++ b/test/functional/attachments_controller_test.rb @@ -339,7 +339,7 @@ class AttachmentsControllerTest < ActionController::TestCase end end assert_nil Attachment.find_by_id(1) - j = Journal.first(:order => 'id DESC') + j = Journal.order('id DESC').first assert_equal issue, j.journalized assert_equal 'attachment', j.details.first.property assert_equal '1', j.details.first.prop_key -- 2.39.5