mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +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 RegistrarTest < ActiveSupport::TestCase
|
||||
class RegistrarTest < ActiveJob::TestCase
|
||||
setup do
|
||||
@registrar = registrars(:bestnames)
|
||||
@original_default_language = Setting.default_language
|
||||
|
@ -213,7 +213,9 @@ class RegistrarTest < ActiveSupport::TestCase
|
|||
def test_issues_e_invoice_along_with_invoice
|
||||
EInvoice::Providers::TestProvider.deliveries.clear
|
||||
|
||||
@registrar.issue_prepayment_invoice(100)
|
||||
perform_enqueued_jobs do
|
||||
@registrar.issue_prepayment_invoice(100)
|
||||
end
|
||||
|
||||
assert_equal 1, EInvoice::Providers::TestProvider.deliveries.count
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue