mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 20:55:44 +02:00
Fix email validation in test
This commit is contained in:
parent
70a6a44525
commit
763c91a9fe
2 changed files with 1 additions and 2 deletions
|
@ -8,7 +8,6 @@ namespace :verify_email do
|
||||||
desc 'Starts verifying email jobs with optional check level and spam protection'
|
desc 'Starts verifying email jobs with optional check level and spam protection'
|
||||||
task check_all: :environment do
|
task check_all: :environment do
|
||||||
SPAM_PROTECT_TIMEOUT = 30.seconds
|
SPAM_PROTECT_TIMEOUT = 30.seconds
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
domain_name: nil,
|
domain_name: nil,
|
||||||
check_level: 'regex',
|
check_level: 'regex',
|
||||||
|
|
|
@ -814,7 +814,7 @@ class EppDomainUpdateBaseTest < EppTestCase
|
||||||
def test_makes_update_if_was_forcedelete
|
def test_makes_update_if_was_forcedelete
|
||||||
contact = @domain.contacts.first
|
contact = @domain.contacts.first
|
||||||
contact.update_attribute(:email, '`@outlook.test')
|
contact.update_attribute(:email, '`@outlook.test')
|
||||||
contact.email_verification.verify
|
contact.verify_email
|
||||||
assert contact.email_verification_failed?
|
assert contact.email_verification_failed?
|
||||||
@domain.reload
|
@domain.reload
|
||||||
assert @domain.force_delete_scheduled?
|
assert @domain.force_delete_scheduled?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue