Skip to content

Commit 64ffe39

Browse files
update findoc test
1 parent d1fc485 commit 64ffe39

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

spec/product/financial_document_v1_spec.rb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,26 @@
2222
expect(prediction.invoice_number.bounding_box).to be_nil
2323
expect(prediction.date.value).to be_nil
2424
expect(prediction.date.page_id).to be_nil
25+
expect(prediction.locale.value).to be_nil
26+
expect(prediction.total_amount.value).to be_nil
27+
expect(prediction.total_net.value).to be_nil
28+
expect(prediction.total_tax.value).to be_nil
29+
expect(prediction.billing_address.value).to be_nil
30+
expect(prediction.due_date.value).to be_nil
31+
expect(prediction.document_number.value).to be_nil
32+
expect(prediction.document_type.value).to eq('EXPENSE RECEIPT')
33+
expect(prediction.document_type_extended.value).to eq('EXPENSE RECEIPT')
34+
expect(prediction.supplier_name.value).to be_nil
35+
expect(prediction.supplier_address.value).to be_nil
36+
expect(prediction.customer_id.value).to be_nil
37+
expect(prediction.customer_name.value).to be_nil
38+
expect(prediction.customer_address.value).to be_nil
39+
expect(prediction.customer_company_registrations.length).to eq(0)
40+
expect(prediction.taxes.length).to eq(0)
41+
expect(prediction.supplier_payment_details.length).to eq(0)
42+
expect(prediction.supplier_company_registrations.length).to eq(0)
43+
expect(prediction.tip.value).to be_nil
44+
expect(prediction.time.value).to be_nil
2545
end
2646

2747
it 'should load a complete document prediction' do

0 commit comments

Comments
 (0)