From 8c595df5954cde98a4481f2585838be26da2b899 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 11 Jan 2014 08:32:12 +0000 Subject: [PATCH] Rails4: replace deprecated find_all_by_* at IssuesControllerTest git-svn-id: http://svn.redmine.org/redmine/trunk@12627 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/issues_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index f70c5a3c0..89d47f456 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -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