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:
parent
5feb02c31d
commit
ac214f5480
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue