From d99b67467d36d6419be9d521a768da210b432664 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sun, 1 Dec 2024 04:46:15 +0000 Subject: 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 --- test/unit/user_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3