From 6097d6b1bf144e5052f681a57f262a7c171a35f9 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 11 Jan 2014 09:24:08 +0000 Subject: [PATCH] Rails4: replace deprecated find_all_by_* at TimelogCustomFieldsVisibilityTest git-svn-id: http://svn.redmine.org/redmine/trunk@12633 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/timelog_custom_fields_visibility_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/timelog_custom_fields_visibility_test.rb b/test/functional/timelog_custom_fields_visibility_test.rb index 5361ee03e..f7633fe3a 100644 --- a/test/functional/timelog_custom_fields_visibility_test.rb +++ b/test/functional/timelog_custom_fields_visibility_test.rb @@ -95,8 +95,8 @@ class TimelogCustomFieldsVisibilityTest < ActionController::TestCase p1 = Project.generate! p2 = Project.generate! user = User.generate! - User.add_to_project(user, p1, Role.find_all_by_id([1, 3])) - User.add_to_project(user, p2, Role.find_all_by_id(3)) + User.add_to_project(user, p1, Role.where(:id => [1, 3]).all) + User.add_to_project(user, p2, Role.where(:id => 3).all) TimeEntry.generate!( :issue => Issue.generate!(:project => p1, :tracker_id => 1, :custom_field_values => {@field2.id => 'ValueA'}))