Some tests for invoice binding

This commit is contained in:
Martin Lensment 2015-04-14 19:00:38 +03:00
parent e678e655da
commit 57d23976c7
19 changed files with 206 additions and 25 deletions

View file

@ -90,7 +90,7 @@ describe Registrar do
@registrar.issue_prepayment_invoice(200, 'add some money')
@registrar.invoices.count.should == 1
i = @registrar.invoices.first
i.total.should == BigDecimal.new('240.0')
i.sum.should == BigDecimal.new('240.0')
i.description.should == 'add some money'
end
end