Better validation error message when the domain of email is not allowed (#35450).

Patch by  Yuichi HARADA.


git-svn-id: https://svn.redmine.org/redmine/trunk@21739 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2022-07-27 14:05:06 +00:00
parent 15dcf9553e
commit 93e24bfccf
3 changed files with 12 additions and 3 deletions

View File

@@ -131,7 +131,7 @@ class EmailAddressesControllerTest < Redmine::ControllerTest
}
)
assert_response :success
assert_select_error 'Email is invalid'
assert_select_error 'Email contains a domain not allowed (black.example)'
end
end
@@ -147,7 +147,7 @@ class EmailAddressesControllerTest < Redmine::ControllerTest
}
)
assert_response :success
assert_select_error 'Email is invalid'
assert_select_error 'Email contains a domain not allowed (example.fr)'
end
end
end