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:
Toshi MARUYAMA 2014-01-08 05:02:14 +00:00
parent 4ca6fb4226
commit 035c68f1a9
1 changed files with 1 additions and 1 deletions

View File

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