Test valid invoice sums when created by bank transaction

This commit is contained in:
Karl Erik Õunapuu 2020-09-08 14:24:52 +03:00
parent 1a56fcf179
commit 3decec8b02
No known key found for this signature in database
GPG key ID: C9DD647298A34764
4 changed files with 25 additions and 5 deletions

View file

@ -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