1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 19:47:14 +00:00

Improve error messages for test failures by using assert_includes instead of assert in UserTest#test_validate_password_complexity (#41914).

git-svn-id: https://svn.redmine.org/redmine/trunk@23343 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2024-12-01 04:46:15 +00:00
parent 9c5199f5f5
commit d99b67467d

View File

@ -577,7 +577,7 @@ class UserTest < ActiveSupport::TestCase
user.password = p
user.password_confirmation = p
assert_not user.save
assert user.errors.full_messages.include?('Password is too simple')
assert_includes user.errors.full_messages, 'Password is too simple'
end
end