mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-17 06:52:27 +01:00
fix accounting export test according to new specs
This commit is contained in:
parent
f317e009f7
commit
a12be41412
@ -103,7 +103,9 @@ class Exports::AccountingExportTest < ActionDispatch::IntegrationTest
|
||||
end
|
||||
|
||||
assert_equal first_invoice.reference, data[1][I18n.t('accounting_export.piece')], 'Piece (invoice reference) is wrong'
|
||||
assert_nil data[1][I18n.t('accounting_export.line_label')], 'Line label should be empty for non client lines'
|
||||
assert_match I18n.t('accounting_export.subscription'),
|
||||
data[1][I18n.t('accounting_export.line_label')],
|
||||
'Line label should be empty for non client lines'
|
||||
|
||||
item = first_invoice.invoice_items.first
|
||||
assert_equal item.amount / 100.00, data[1][I18n.t('accounting_export.credit_origin')].to_f, 'Origin credit amount does not match'
|
||||
|
Loading…
x
Reference in New Issue
Block a user