spec/integrations/workflow_run_spec.rb in onfido-2.8.0 vs spec/integrations/workflow_run_spec.rb in onfido-2.9.0
- old
+ new
@@ -36,11 +36,19 @@
end
end
describe '#all' do
it 'returns the workflow runs' do
- response = workflow_run.all({ page: 1, sort: "asc" })
+ response = workflow_run.all({ page: 1, sort: 'asc' })
expect(response.count).to eq(2)
+ end
+ end
+
+ describe '#evidence' do
+ it 'returns the signed PDF' do
+ response = workflow_run.evidence(workflow_run_id)
+
+ expect(response[0..4]).to eq('%PDF-')
end
end
end