mirror of
https://github.com/redmine/redmine.git
synced 2026-08-30 09:47:39 +02:00
Fix RuboCop offense Style/HashEachMethods (#39887).
git-svn-id: https://svn.redmine.org/redmine/trunk@22532 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -129,7 +129,7 @@ class AuthSourceLdapTest < ActiveSupport::TestCase
|
||||
assert_equal 'One', attributes[:lastname]
|
||||
assert_equal 'example1@redmine.org', attributes[:mail]
|
||||
assert_equal auth.id, attributes[:auth_source_id]
|
||||
attributes.keys.each do |attribute|
|
||||
attributes.each_key do |attribute|
|
||||
assert User.new.respond_to?("#{attribute}="), "Unexpected :#{attribute} attribute returned"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user