Move jobs from Que to ActiveJob

This commit is contained in:
Alex Sherman 2020-10-19 16:01:20 +05:00
parent 1d3be40e14
commit 313731232e
53 changed files with 390 additions and 157 deletions

View file

@ -1,6 +1,6 @@
require 'test_helper'
class ContactTest < ActiveSupport::TestCase
class ContactTest < ActiveJob::TestCase
setup do
@contact = contacts(:john)
@old_validation_type = Truemail.configure.default_validation_type
@ -336,7 +336,9 @@ class ContactTest < ActiveSupport::TestCase
@contact.name = 'SomeReallyWeirdRandomTestName'
domain = @contact.registrant_domains.first
@contact.save!
perform_enqueued_jobs do
@contact.save!
end
assert_equal domain.whois_record.try(:json).try(:[], 'registrant'), @contact.name
end