summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-07-17 00:34:31 +0000
committerGo MAEDA <maeda@farend.jp>2022-07-17 00:34:31 +0000
commit3d075236209bc836a868a993fb36e105564926a1 (patch)
treea94264cab94e1ad0479467b73f71cb23df9b5912 /test/unit
parent9aa34eb651e2941aeae69cc3acf6e1c1b909729e (diff)
downloadredmine-3d075236209bc836a868a993fb36e105564926a1.tar.gz
redmine-3d075236209bc836a868a993fb36e105564926a1.zip
Merged r21705 from trunk to 5.0-stable (#37449).
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21711 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/user_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb
index dde1cdd62..53e7693ff 100644
--- a/test/unit/user_test.rb
+++ b/test/unit/user_test.rb
@@ -1099,7 +1099,7 @@ class UserTest < ActiveSupport::TestCase
end
def test_random_password_include_required_characters
- with_settings :password_required_char_classes => Setting::PASSWORD_CHAR_CLASSES do
+ with_settings :password_required_char_classes => Setting::PASSWORD_CHAR_CLASSES.keys do
u = User.new(:firstname => "new", :lastname => "user", :login => "random", :mail => "random@somnet.foo")
u.random_password
assert u.valid?