move validator from callback to action interactor and to the api controller

This commit is contained in:
Oleg Hasjanov 2024-01-16 13:00:10 +02:00 committed by Oleg Hasjanov
parent f4d276fc44
commit 8eee65579b
9 changed files with 127 additions and 116 deletions

View file

@ -66,10 +66,9 @@ class VerifyEmailTaskTest < ActiveJob::TestCase
create_valid_contact
end
# Validation email of new contact will be skipped because it validated in during create
# assert_difference 'ValidationEvent.where(success: true).count', 1 do
# run_task
# end
assert_difference 'ValidationEvent.where(success: true).count', 1 do
run_task
end
end
def test_fd_should_not_be_removed_if_email_changed_to_another_invalid_one