summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-12-01 04:46:15 +0000
committerGo MAEDA <maeda@farend.jp>2024-12-01 04:46:15 +0000
commitd99b67467d36d6419be9d521a768da210b432664 (patch)
tree3691fa880be2c9f8fa0071ce8d7db110272e952f
parent9c5199f5f5d7f5c52f6dce5a5f0ebd707cc30289 (diff)
downloadredmine-d99b67467d36d6419be9d521a768da210b432664.tar.gz
redmine-d99b67467d36d6419be9d521a768da210b432664.zip
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
-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 2de0b45db..69a79b465 100644
--- a/test/unit/user_test.rb
+++ b/test/unit/user_test.rb
@@ -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