mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 09:45:11 +02:00
Merge pull request #1243 from internetee/issue-e-invoice-along-with-invoice
Issue e invoice along with invoice
This commit is contained in:
commit
b5af793305
7 changed files with 19 additions and 7 deletions
|
@ -93,6 +93,14 @@ class RegistrarTest < ActiveSupport::TestCase
|
|||
Setting.days_to_keep_invoices_active = @original_days_to_keep_invoices_active_setting
|
||||
end
|
||||
|
||||
def test_issues_e_invoice_along_with_invoice
|
||||
EInvoice::Providers::TestProvider.deliveries.clear
|
||||
|
||||
@registrar.issue_prepayment_invoice(100)
|
||||
|
||||
assert_equal 1, EInvoice::Providers::TestProvider.deliveries.count
|
||||
end
|
||||
|
||||
def test_invalid_without_address_street
|
||||
registrar = valid_registrar
|
||||
registrar.address_street = ''
|
||||
|
|
|
@ -5,7 +5,6 @@ class ReloadBalanceTaskTest < ActiveSupport::TestCase
|
|||
|
||||
setup do
|
||||
@registrar = registrars(:bestnames)
|
||||
EInvoice.provider = EInvoice::Providers::TestProvider.new
|
||||
end
|
||||
|
||||
def test_issues_invoice_when_auto_reload_is_enabled_and_threshold_reached
|
||||
|
|
|
@ -26,6 +26,8 @@ end
|
|||
|
||||
CompanyRegister::Client = CompanyRegisterClientStub
|
||||
|
||||
EInvoice.provider = EInvoice::Providers::TestProvider.new
|
||||
|
||||
class ActiveSupport::TestCase
|
||||
include FactoryBot::Syntax::Methods
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue