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
This commit is contained in:
Toshi MARUYAMA 2014-01-09 00:04:38 +00:00
parent 5feb02c31d
commit ac214f5480
1 changed files with 1 additions and 1 deletions

View File

@ -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