Fix invoice

#623
This commit is contained in:
Artur Beljajev 2018-03-14 12:19:44 +02:00
parent fb35ec5cbb
commit e1b0f3044e
2 changed files with 5 additions and 0 deletions

View file

@ -76,6 +76,10 @@ class InvoiceTest < ActiveSupport::TestCase
end
end
def test_returns_persisted_total
assert_equal BigDecimal('16.50'), @invoice.total
end
def test_calculates_total
line_item = InvoiceItem.new
invoice = Invoice.new