spec/shared_contexts/with_document.rb in onfido-3.4.0 vs spec/shared_contexts/with_document.rb in onfido-4.0.0

- old
+ new

@@ -6,8 +6,8 @@ include_context 'with applicant' let(:document_file_name) { 'sample_driving_licence.png' } let(:document_file) { File.open("spec/integrations/media/#{document_file_name}") } - let(:document) { onfido_api.upload_document('passport', applicant_id, document_file) } + let(:document) { onfido_api.upload_document(Onfido::DocumentTypes::PASSPORT, applicant_id, document_file) } let!(:document_id) { document.id } end