mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
Test balance reloading after bank transfer without invoice
This commit is contained in:
parent
17188ec635
commit
1a56fcf179
1 changed files with 12 additions and 0 deletions
|
@ -82,6 +82,18 @@ class ProcessPaymentsTaskTest < ActiveSupport::TestCase
|
|||
assert payment_order.failed?
|
||||
end
|
||||
|
||||
def test_credits_registrar_account_without_invoice_beforehand
|
||||
registrar = registrars(:bestnames)
|
||||
|
||||
assert_changes -> { registrar.accounts.first.balance } do
|
||||
run_task
|
||||
end
|
||||
|
||||
assert_changes -> { registrar.invoices.count } do
|
||||
run_task
|
||||
end
|
||||
end
|
||||
|
||||
def test_output
|
||||
assert_output "Transactions processed: 1\n" do
|
||||
run_task
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue