spec/integrations/report_schema_spec.rb in onfido-4.2.0 vs spec/integrations/report_schema_spec.rb in onfido-4.3.0

- old
+ new

@@ -53,10 +53,10 @@ report = repeat_request_until_status_changes( Onfido::ReportStatus::COMPLETE ) { onfido_api.find_report(report_id) } expect(report).to be_an_instance_of Onfido::DocumentWithAddressInformationReport - expect(report.properties.barcode).to be_an_instance_of Onfido::DocumentPropertiesBarcode - expect(report.properties.barcode.document_type).to eq("driving_licence") + expect(report.properties.barcode[0]).to be_an_instance_of Onfido::DocumentPropertiesBarcodeInner + expect(report.properties.barcode[0].document_type).to eq("driving_licence") end end end