Rails4: replace deprecated Relation#first with finder options at ChangesetTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12514 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
4ca6fb4226
commit
035c68f1a9
|
@ -96,7 +96,7 @@ class ChangesetTest < ActiveSupport::TestCase
|
|||
end
|
||||
assert_equal [1], c.issue_ids.sort
|
||||
|
||||
time = TimeEntry.first(:order => 'id desc')
|
||||
time = TimeEntry.order('id desc').first
|
||||
assert_equal 1, time.issue_id
|
||||
assert_equal 1, time.project_id
|
||||
assert_equal 2, time.user_id
|
||||
|
|
Loading…
Reference in New Issue