Rails4: replace deprecated find_all_by_* at IssuesControllerTest

git-svn-id: http://svn.redmine.org/redmine/trunk@12627 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-11 08:32:12 +00:00
parent 65ba233c62
commit 8c595df595
1 changed files with 1 additions and 1 deletions

View File

@ -3371,7 +3371,7 @@ class IssuesControllerTest < ActionController::TestCase
assert_response 302 assert_response 302
# check that the issues were updated # check that the issues were updated
assert_equal [7, 7], Issue.find_all_by_id([1, 2]).collect {|i| i.priority.id} assert_equal [7, 7], Issue.where(:id =>[1, 2]).collect {|i| i.priority.id}
issue = Issue.find(1) issue = Issue.find(1)
journal = issue.journals.reorder('created_on DESC').first journal = issue.journals.reorder('created_on DESC').first