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:
parent
65ba233c62
commit
8c595df595
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue