mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 16:37:06 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user