mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 13:36:15 +02:00
Updated test
This commit is contained in:
parent
77a6f6d985
commit
5d92442a48
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue