mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
fixed error
This commit is contained in:
parent
8524503582
commit
2543b9c1f8
6 changed files with 20 additions and 155 deletions
|
@ -29,15 +29,6 @@ class VerifyEmailsJobTest < ActiveJob::TestCase
|
|||
[domain(@invalid_contact.email)].reject(&:blank?)
|
||||
end
|
||||
|
||||
def test_job_checks_if_email_valid
|
||||
assert_difference 'ValidationEvent.successful.count', 1 do
|
||||
perform_enqueued_jobs do
|
||||
VerifyEmailsJob.perform_now(contact_id: @contact.id, check_level: 'regex')
|
||||
end
|
||||
end
|
||||
assert ValidationEvent.validated_ids_by(Contact).include? @contact.id
|
||||
end
|
||||
|
||||
def test_job_checks_if_email_invalid
|
||||
perform_enqueued_jobs do
|
||||
VerifyEmailsJob.perform_now(contact_id: @invalid_contact.id, check_level: 'regex')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue