Skip to content

Commit

Permalink
Update tests, README.md and CHANGELOG after library update
Browse files Browse the repository at this point in the history
  • Loading branch information
dvacca-onfido committed Jun 11, 2024
1 parent b49ddfe commit cdd8b0c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## v3.0.0 14th Jun 2024

- Make library auto-generated and based on [Onfido OpenAPI spec](https://github.com/onfido/onfido-openapi-spec)
- Refresh library up to commit: [8e437b8](https://github.com/onfido/onfido-openapi-spec/commit/8e437b8465e872cf8e4deb166499484a957da3f2)
- Refresh library up to commit: [169dd4d](https://github.com/onfido/onfido-openapi-spec/commit/169dd4d6598dab5d9822c9b87e7f0f16b3aef5dc)

## v2.9.0 24 November 2023

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Configure with your API token, region and optional timeout (default value is 30)
require onfido

Onfido.configure do |config|
config.api_token = ENV["ONFIDO_WEBHOOK_SECRET_TOKEN"]
config.api_token = ENV["ONFIDO_API_TOKEN"]
config.region = config.region[:EU]
config.timeout = 30
end
Expand Down Expand Up @@ -71,7 +71,7 @@ Webhook events payload needs to be verified before it can be accessed. Library a
require 'onfido/webhook_event_verifier'

def webhook_verifier()
verifier = Onfido::WebhookEventVerifier.new("_ABC123abc...3ABC123_")
verifier = Onfido::WebhookEventVerifier.new(ENV["ONFIDO_WEBHOOK_SECRET_TOKEN"])

signature = "a0...760e"

Expand Down
2 changes: 1 addition & 1 deletion spec/integrations/id_photo_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
id_photos = onfido_api.list_id_photos(applicant_id)

expect(id_photos.id_photos.length).to be > 0
expect(id_photos).to be_an_instance_of Onfido::IDPhotosList
expect(id_photos).to be_an_instance_of Onfido::IdPhotosList
end

it 'retrieves id photo' do
Expand Down
4 changes: 4 additions & 0 deletions spec/integrations/report_schema_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
) { onfido_api.find_report(document_report_id) }

expect(document_report).to be_an_instance_of Onfido::DocumentReport

expect(document_report.name).to eq("document")
expect(document_report.breakdown.data_comparison.breakdown.issuing_country.result).to eq("clear")
expect(document_report.properties.date_of_birth).to eq(Date.parse("1990-01-01"))
end

it 'schema of Facial Similarity report is valid' do
Expand Down

0 comments on commit cdd8b0c

Please sign in to comment.