Rails4: replace deprecated find_all_by_* at TimelogCustomFieldsVisibilityTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12633 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
6e8d8da1f3
commit
6097d6b1bf
|
@ -95,8 +95,8 @@ class TimelogCustomFieldsVisibilityTest < ActionController::TestCase
|
||||||
p1 = Project.generate!
|
p1 = Project.generate!
|
||||||
p2 = Project.generate!
|
p2 = Project.generate!
|
||||||
user = User.generate!
|
user = User.generate!
|
||||||
User.add_to_project(user, p1, Role.find_all_by_id([1, 3]))
|
User.add_to_project(user, p1, Role.where(:id => [1, 3]).all)
|
||||||
User.add_to_project(user, p2, Role.find_all_by_id(3))
|
User.add_to_project(user, p2, Role.where(:id => 3).all)
|
||||||
TimeEntry.generate!(
|
TimeEntry.generate!(
|
||||||
:issue => Issue.generate!(:project => p1, :tracker_id => 1,
|
:issue => Issue.generate!(:project => p1, :tracker_id => 1,
|
||||||
:custom_field_values => {@field2.id => 'ValueA'}))
|
:custom_field_values => {@field2.id => 'ValueA'}))
|
||||||
|
|
Loading…
Reference in New Issue