]> source.dussan.org Git - redmine.git/commitdiff
Rails4: replace deprecated find_all_by_* at IssuesControllerTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 11 Jan 2014 08:32:12 +0000 (08:32 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 11 Jan 2014 08:32:12 +0000 (08:32 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12627 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/issues_controller_test.rb

index f70c5a3c0f2d38ecba4f78f0af17bc5ac228c0d4..89d47f45631e1cc7228948121250932f57908ba0 100644 (file)
@@ -3371,7 +3371,7 @@ class IssuesControllerTest < ActionController::TestCase
 
     assert_response 302
     # 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)
     journal = issue.journals.reorder('created_on DESC').first