mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
move validator from callback to action interactor and to the api controller
This commit is contained in:
parent
f4d276fc44
commit
8eee65579b
9 changed files with 127 additions and 116 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue