diff options
author | Go MAEDA <maeda@farend.jp> | 2023-12-20 08:13:48 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-12-20 08:13:48 +0000 |
commit | c8640d7ffc28b1632106e2d2bc33f5d792d644fc (patch) | |
tree | 221c5cd85f75561695faf6c4d795d0263f2a5cc3 /test/functional/issues_custom_fields_visibility_test.rb | |
parent | d9ef2d191cdb3d04508530275bc99c3710820fcb (diff) | |
download | redmine-c8640d7ffc28b1632106e2d2bc33f5d792d644fc.tar.gz redmine-c8640d7ffc28b1632106e2d2bc33f5d792d644fc.zip |
Fix RuboCop offense Style/HashEachMethods (#39887).
git-svn-id: https://svn.redmine.org/redmine/trunk@22532 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issues_custom_fields_visibility_test.rb')
-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 46ca01100..6a06abe12 100644 --- a/test/functional/issues_custom_fields_visibility_test.rb +++ b/test/functional/issues_custom_fields_visibility_test.rb @@ -323,7 +323,7 @@ class IssuesCustomFieldsVisibilityTest < Redmine::ControllerTest # anonymous user is never notified users_to_test = @users_to_test.reject {|k, v| k.anonymous?} - users_to_test.keys.each do |user| + users_to_test.each_key do |user| Watcher.create!(:user => user, :watchable => @issue) end ActionMailer::Base.deliveries.clear @@ -362,7 +362,7 @@ class IssuesCustomFieldsVisibilityTest < Redmine::ControllerTest # anonymous user is never notified users_to_test = @users_to_test.reject {|k, v| k.anonymous?} - users_to_test.keys.each do |user| + users_to_test.each_key do |user| Watcher.create!(:user => user, :watchable => @issue) end ActionMailer::Base.deliveries.clear |