Improve topup tests

This commit is contained in:
Karl Erik Õunapuu 2020-09-10 13:00:05 +03:00
parent b3fd31f679
commit 58079c6955
No known key found for this signature in database
GPG key ID: C9DD647298A34764
2 changed files with 28 additions and 8 deletions

View file

@ -99,12 +99,13 @@ class Registrar < ApplicationRecord
}
]
)
SendEInvoiceJob.enqueue(invoice.id, payable: payable)
unless payable
InvoiceMailer.invoice_email(invoice: invoice, recipient: billing_email).deliver_now
end
SendEInvoiceJob.enqueue(invoice.id, payable: payable)
invoice
end