mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Move jobs from Que to ActiveJob
This commit is contained in:
parent
1d3be40e14
commit
313731232e
53 changed files with 390 additions and 157 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue