spec/integrations/document_spec.rb in onfido-3.4.0 vs spec/integrations/document_spec.rb in onfido-4.0.0
- old
+ new
@@ -33,10 +33,10 @@
expect(file.size).to be > 0
end
it 'cannot download an inexistent document' do
inexistent_document_id = '00000000-0000-0000-0000-000000000000'
-
+
expect {
onfido_api.download_document(inexistent_document_id)
}.to raise_error(Onfido::ApiError) { |e|
expect(e.code).to eq(404)
}