diff --git a/test/jobs/send_monthly_invoices_job_test.rb b/test/jobs/send_monthly_invoices_job_test.rb index 95937df73..9417278d7 100644 --- a/test/jobs/send_monthly_invoices_job_test.rb +++ b/test/jobs/send_monthly_invoices_job_test.rb @@ -94,6 +94,8 @@ class SendMonthlyInvoicesJobTest < ActiveSupport::TestCase end end + perform_enqueued_jobs + invoice = Invoice.last assert_equal 309_902, invoice.number assert invoice.in_directo @@ -135,6 +137,8 @@ class SendMonthlyInvoicesJobTest < ActiveSupport::TestCase end end + perform_enqueued_jobs + invoice = Invoice.last assert_equal 309_902, invoice.number assert invoice.in_directo @@ -171,6 +175,8 @@ class SendMonthlyInvoicesJobTest < ActiveSupport::TestCase SendMonthlyInvoicesJob.perform_now end + perform_enqueued_jobs + invoice = Invoice.last assert_equal 309_902, invoice.number assert invoice.in_directo @@ -198,6 +204,8 @@ class SendMonthlyInvoicesJobTest < ActiveSupport::TestCase SendMonthlyInvoicesJob.perform_now end + perform_enqueued_jobs + invoice = Invoice.last assert_equal 309_902, invoice.number assert invoice.in_directo @@ -244,6 +252,8 @@ class SendMonthlyInvoicesJobTest < ActiveSupport::TestCase end end + perform_enqueued_jobs + assert_requested first_registrar_stub assert_requested second_registrar_stub