Improve email address validation (#29838)
This commit is contained in:
parent
1f11aa5f04
commit
38b9d31f63
5 changed files with 29 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue