diff options
author | Go MAEDA <maeda@farend.jp> | 2023-12-20 09:23:05 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-12-20 09:23:05 +0000 |
commit | 380444f085d95656347cb4e62d41e851ca8494b9 (patch) | |
tree | 29b59c9e08ff8236b3abdde6396ed704fd68092b /test | |
parent | 21a48d79f4f116a59283803475a5799e83da6074 (diff) | |
download | redmine-380444f085d95656347cb4e62d41e851ca8494b9.tar.gz redmine-380444f085d95656347cb4e62d41e851ca8494b9.zip |
Fix RuboCop offense Performance/StringIdentifierArgument (#39888).
git-svn-id: https://svn.redmine.org/redmine/trunk@22535 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/auth_source_ldap_test.rb | 2 | ||||
-rw-r--r-- | test/unit/lib/redmine/safe_attributes_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/auth_source_ldap_test.rb b/test/unit/auth_source_ldap_test.rb index 1dbdb3b73..97b11f53f 100644 --- a/test/unit/auth_source_ldap_test.rb +++ b/test/unit/auth_source_ldap_test.rb @@ -130,7 +130,7 @@ class AuthSourceLdapTest < ActiveSupport::TestCase assert_equal 'example1@redmine.org', attributes[:mail] assert_equal auth.id, attributes[:auth_source_id] attributes.each_key do |attribute| - assert User.new.respond_to?("#{attribute}="), "Unexpected :#{attribute} attribute returned" + assert User.new.respond_to?(:"#{attribute}="), "Unexpected :#{attribute} attribute returned" end end diff --git a/test/unit/lib/redmine/safe_attributes_test.rb b/test/unit/lib/redmine/safe_attributes_test.rb index 4f031b816..99059f326 100644 --- a/test/unit/lib/redmine/safe_attributes_test.rb +++ b/test/unit/lib/redmine/safe_attributes_test.rb @@ -25,7 +25,7 @@ class Redmine::SafeAttributesTest < ActiveSupport::TestCase class Base def attributes=(attrs) attrs.each do |key, value| - send("#{key}=", value) + send(:"#{key}=", value) end end end |