mirror of
https://github.com/redmine/redmine.git
synced 2025-12-20 15:30:44 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user