0
0
Fork 0

Improve email address validation (#29838)

This commit is contained in:
Claire 2024-04-05 09:48:45 +02:00 committed by GitHub
parent 1f11aa5f04
commit 38b9d31f63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 29 additions and 0 deletions

View file

@ -38,6 +38,12 @@ RSpec.describe User do
user.save(validate: false)
expect(user.valid?).to be true
end
it 'is valid with a localhost e-mail address' do
user = Fabricate.build(:user, email: 'admin@localhost')
user.valid?
expect(user.valid?).to be true
end
end
describe 'Normalizations' do