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

git-svn-id: http://svn.redmine.org/redmine/trunk@12625 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-11 07:47:02 +00:00
parent 15031f6173
commit 7ac013fbe8
1 changed files with 1 additions and 1 deletions

View File

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