spec/integrations/workflow_run_spec.rb in onfido-3.4.0 vs spec/integrations/workflow_run_spec.rb in onfido-4.0.0

- old
+ new

@@ -7,11 +7,11 @@ include_context 'with workflow run' it 'creates a workflow run' do expect(workflow_run).to be_an_instance_of Onfido::WorkflowRun expect(workflow_run.applicant_id).to eq applicant_id - expect(workflow_run.status).to eq 'awaiting_input' + expect(workflow_run.status).to eq Onfido::WorkflowRunStatus::AWAITING_INPUT end context 'workflow run with custom inputs' do let(:workflow_id) { '45092b29-f220-479e-aa6f-a6f989baac4c' } let(:workflow_run_builder) do @@ -22,14 +22,14 @@ age: 18, is_employed: false } }) end - + it 'creates a workflow run with custom inputs' do expect(workflow_run).to be_an_instance_of Onfido::WorkflowRun expect(workflow_run.workflow_id).to eq workflow_id - expect(workflow_run.status).to eq 'approved' + expect(workflow_run.status).to eq Onfido::WorkflowRunStatus::APPROVED end end it 'lists workflow runs' do list_of_workflow_runs = onfido_api.list_workflow_runs()