diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-11 08:32:28 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-11 08:32:28 +0000 |
commit | a516a1bdb25603ba7fba2004135e2544d0bb078e (patch) | |
tree | 25218ec7df317405c14983f7ed55055aad59b3d9 /test | |
parent | 8c595df5954cde98a4481f2585838be26da2b899 (diff) | |
download | redmine-a516a1bdb25603ba7fba2004135e2544d0bb078e.tar.gz redmine-a516a1bdb25603ba7fba2004135e2544d0bb078e.zip |
Rails4: replace deprecated find_all_by_* at IssuesCustomFieldsVisibilityTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12628 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/issues_custom_fields_visibility_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/issues_custom_fields_visibility_test.rb b/test/functional/issues_custom_fields_visibility_test.rb index d30313834..e9df0ef83 100644 --- a/test/functional/issues_custom_fields_visibility_test.rb +++ b/test/functional/issues_custom_fields_visibility_test.rb @@ -199,8 +199,8 @@ class IssuesCustomFieldsVisibilityTest < 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) Issue.generate!(:project => p1, :tracker_id => 1, :custom_field_values => {@field2.id => 'ValueA'}) Issue.generate!(:project => p2, :tracker_id => 1, :custom_field_values => {@field2.id => 'ValueB'}) Issue.generate!(:project => p1, :tracker_id => 1, :custom_field_values => {@field2.id => 'ValueC'}) |