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:
parent
15031f6173
commit
7ac013fbe8
|
@ -2272,7 +2272,7 @@ class IssuesControllerTest < ActionController::TestCase
|
||||||
:subject => 'This is an issue',
|
:subject => 'This is an issue',
|
||||||
:status_id => 1}
|
:status_id => 1}
|
||||||
end
|
end
|
||||||
issue = Issue.last(:order => 'id')
|
issue = Issue.order('id').last
|
||||||
assert_equal IssueStatus.default, issue.status
|
assert_equal IssueStatus.default, issue.status
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue