Rails4: replace deprecated Relation#last with finder options at IssuesControllerTest

git-svn-id: http://svn.redmine.org/redmine/trunk@12582 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-10 04:11:20 +00:00
parent c0303bf47c
commit efb5d5769a
1 changed files with 1 additions and 1 deletions

View File

@ -2283,7 +2283,7 @@ class IssuesControllerTest < ActionController::TestCase
:subject => 'This is an issue',
:status_id => 3}
end
issue = Issue.last(:order => 'id')
issue = Issue.order('id').last
assert_equal IssueStatus.default, issue.status
end
end