From 5d92442a48f7ed63526005bebec93e74094b0ff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergei=20Ts=C3=B5ganov?= Date: Mon, 29 Aug 2022 16:06:14 +0300 Subject: [PATCH] Updated test --- test/jobs/send_monthly_invoices_job_test.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) 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