From ac214f54809c5a7ec41967b8fc061d227d08130c Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 9 Jan 2014 00:04:38 +0000 Subject: [PATCH] Rails4: replace deprecated Relation#first with finder options at ChangesetTest git-svn-id: http://svn.redmine.org/redmine/trunk@12538 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/changeset_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/changeset_test.rb b/test/unit/changeset_test.rb index 5f23be256..0b134ad9b 100644 --- a/test/unit/changeset_test.rb +++ b/test/unit/changeset_test.rb @@ -225,7 +225,7 @@ class ChangesetTest < ActiveSupport::TestCase assert c.save end assert issue.reload.closed? - journal = Journal.first(:order => 'id DESC') + journal = Journal.order('id DESC').first assert_equal issue, journal.issue assert_include "Applied in changeset ecookbook:r12345.", journal.notes end