mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 10:45:58 +02:00
Remove/fix outdated specs
This commit is contained in:
parent
837ef067e7
commit
3bdfb4b4eb
3 changed files with 9 additions and 128 deletions
|
@ -34,17 +34,6 @@ describe BankTransaction do
|
|||
@bank_transaction.errors.full_messages.should match_array([])
|
||||
end
|
||||
|
||||
it 'should bind transaction with invoice manually' do
|
||||
r = Fabricate(:registrar_with_no_account_activities, reference_no: 'RF7086666663')
|
||||
invoice = r.issue_prepayment_invoice(200, 'add some money')
|
||||
|
||||
bt = Fabricate(:bank_transaction, { sum: 240 })
|
||||
bt.bind_invoice(invoice.number)
|
||||
|
||||
invoice.receipt_date.should_not be_blank
|
||||
r.cash_account.balance.should == 200.0
|
||||
end
|
||||
|
||||
it 'should not bind transaction with mismatching sums' do
|
||||
r = Fabricate(:registrar_with_no_account_activities, reference_no: 'RF7086666663')
|
||||
invoice = r.issue_prepayment_invoice(200, 'add some money')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue