##// END OF EJS Templates
Rails4: replace deprecated find_all_by_* at IssuesControllerTest...
Toshi MARUYAMA -
r12352:8c595df5954c
parent child
Show More
@@ -3371,7 +3371,7 class IssuesControllerTest < ActionController::TestCase
3371
3371
3372 assert_response 302
3372 assert_response 302
3373 # check that the issues were updated
3373 # check that the issues were updated
3374 assert_equal [7, 7], Issue.find_all_by_id([1, 2]).collect {|i| i.priority.id}
3374 assert_equal [7, 7], Issue.where(:id =>[1, 2]).collect {|i| i.priority.id}
3375
3375
3376 issue = Issue.find(1)
3376 issue = Issue.find(1)
3377 journal = issue.journals.reorder('created_on DESC').first
3377 journal = issue.journals.reorder('created_on DESC').first
General Comments 0
You need to be logged in to leave comments. Login now