Rails4: replace deprecated Relation#first with finder options at integration IssuesTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12599 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
1c938cd1d3
commit
d02bcbcee5
@ -156,7 +156,7 @@ class IssuesTest < ActionController::IntegrationTest
|
||||
:custom_field_values => {@field.id.to_s => users.first.id.to_s}
|
||||
}
|
||||
end
|
||||
issue = Issue.first(:order => 'id DESC')
|
||||
issue = Issue.order('id DESC').first
|
||||
assert_response 302
|
||||
|
||||
# Issue view
|
||||
|
Loading…
x
Reference in New Issue
Block a user