mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
Test valid invoice sums when created by bank transaction
This commit is contained in:
parent
1a56fcf179
commit
3decec8b02
4 changed files with 25 additions and 5 deletions
|
@ -94,6 +94,13 @@ class ProcessPaymentsTaskTest < ActiveSupport::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
def test_topup_creates_invoice_with_total_of_transactioned_amount
|
||||
registrar = registrars(:bestnames)
|
||||
run_task
|
||||
|
||||
assert_equal 0.1, registrar.invoices.last.total
|
||||
end
|
||||
|
||||
def test_output
|
||||
assert_output "Transactions processed: 1\n" do
|
||||
run_task
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue