git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21711
e93f8b46-1217-0410-a6f0-
8f06a7374b81
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?