]> 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 07:22:39 +0000 (07:22 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 11 Jan 2014 07:22:39 +0000 (07:22 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12622 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/issues_controller_test.rb

index 3d10c4cb76a4502bab77abd13979366737b80177..33d216cb9d224ce5edfacc59de62d54e9dfd507a 100644 (file)
@@ -3393,7 +3393,7 @@ class IssuesControllerTest < ActionController::TestCase
                                                 :custom_field_values => {'2' => ''}}
 
     assert_response 302
-    assert_equal [group, group], Issue.find_all_by_id([1, 2]).collect {|i| i.assigned_to}
+    assert_equal [group, group], Issue.where(:id => [1, 2]).collect {|i| i.assigned_to}
   end
 
   def test_bulk_update_on_different_projects