mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 13:36:15 +02:00
Fix tests
This commit is contained in:
parent
b1afdbf50e
commit
ee76deaf52
2 changed files with 3 additions and 3 deletions
|
@ -540,7 +540,7 @@ class ForceDeleteTest < ActionMailer::TestCase
|
|||
|
||||
def perform_check_force_delete_job(contact_id)
|
||||
perform_enqueued_jobs do
|
||||
ValidationEventCheckForceDeleteJob.perform_now([contact_id])
|
||||
CheckForceDeleteJob.perform_now([contact_id])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -27,7 +27,7 @@ class CheckForceDeleteTaskTest < ActiveSupport::TestCase
|
|||
run_task
|
||||
|
||||
assert_enqueued_jobs 1
|
||||
assert_enqueued_with(job: CheckForceDeleteJob, args: [@contact.id])
|
||||
assert_enqueued_with(job: CheckForceDeleteJob, args: [[@contact.id]])
|
||||
end
|
||||
|
||||
def test_enque_force_delete_when_invalid_record_by_regex
|
||||
|
@ -35,7 +35,7 @@ class CheckForceDeleteTaskTest < ActiveSupport::TestCase
|
|||
run_task
|
||||
|
||||
assert_enqueued_jobs 1
|
||||
assert_enqueued_with(job: CheckForceDeleteJob, args: [@invalid_contact.id])
|
||||
assert_enqueued_with(job: CheckForceDeleteJob, args: [[@invalid_contact.id]])
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue