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:
parent
c0303bf47c
commit
efb5d5769a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue