mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 03:30:33 +02:00
Feature tests for account activities
This commit is contained in:
parent
e4dc1d466f
commit
c4b0d6aee5
7 changed files with 45 additions and 4 deletions
|
@ -40,7 +40,7 @@ describe BankStatement do
|
|||
end
|
||||
|
||||
it 'should bind transactions with invoices' do
|
||||
r = Fabricate(:registrar, reference_no: 'RF7086666663')
|
||||
r = Fabricate(:registrar_with_no_account_activities, reference_no: 'RF7086666663')
|
||||
r.issue_prepayment_invoice(200, 'add some money')
|
||||
|
||||
bs = Fabricate(:bank_statement, bank_transactions: [
|
||||
|
@ -70,7 +70,7 @@ describe BankStatement do
|
|||
end
|
||||
|
||||
it 'should not bind transactions with invalid match data' do
|
||||
r = Fabricate(:registrar, reference_no: 'RF7086666663')
|
||||
r = Fabricate(:registrar_with_no_account_activities, reference_no: 'RF7086666663')
|
||||
r.issue_prepayment_invoice(200, 'add some money')
|
||||
|
||||
bs = Fabricate(:bank_statement, bank_transactions: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue