summaryrefslogtreecommitdiffstats
path: root/test/functional/timelog_custom_fields_visibility_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-11 09:24:08 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-11 09:24:08 +0000
commit6097d6b1bf144e5052f681a57f262a7c171a35f9 (patch)
treed10f34467afd049721671aa4cdd4b62f187da8c8 /test/functional/timelog_custom_fields_visibility_test.rb
parent6e8d8da1f3a2b46db9afb2226cd9f96925368f41 (diff)
downloadredmine-6097d6b1bf144e5052f681a57f262a7c171a35f9.tar.gz
redmine-6097d6b1bf144e5052f681a57f262a7c171a35f9.zip
Rails4: replace deprecated find_all_by_* at TimelogCustomFieldsVisibilityTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12633 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/timelog_custom_fields_visibility_test.rb')
-rw-r--r--test/functional/timelog_custom_fields_visibility_test.rb4
1 files 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'}))