Updated test

This commit is contained in:
Sergei Tsõganov 2022-08-29 16:06:14 +03:00
parent 77a6f6d985
commit 5d92442a48

View file

@ -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