mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 03:58:27 +02:00
Invoice filtering in registrar
This commit is contained in:
parent
1f2f483e34
commit
23098add74
13 changed files with 83 additions and 7 deletions
|
@ -72,7 +72,8 @@ describe Invoice do
|
|||
|
||||
it 'should cancel overdue invoices' do
|
||||
Fabricate(:invoice, created_at: Time.zone.now - 35.days, due_date: Time.zone.now - 1.days)
|
||||
Invoice.cancel_overdue_invoices.should == 1
|
||||
Invoice.cancel_overdue_invoices
|
||||
Invoice.where(cancelled_at: nil).count.should == 1
|
||||
end
|
||||
|
||||
# it 'should have one version' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue