Sha256: a30a0b32fd20da80cb6d674ac62a9595e880e96af73cf538a7dd3bdbba61b200

Contents?: true

Size: 526 Bytes

Versions: 4

Compression:

Stored size: 526 Bytes

Contents

describe Onfido::Report do
  subject(:report) { described_class.new }
  let(:check_id) { '8546921-123123-123123' }

  describe '#find' do
    let(:report_id) {'6951786-123123-422221' }

    it 'returns a report for an existing check' do
      response = report.find(check_id, report_id)
      expect(response['id']).to eq(report_id)
    end
  end

  describe '#all' do
    it 'lists all reports for an existing check' do
      response = report.all(check_id)
      expect(response['reports'].count).to eq(2)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
onfido-0.0.4 spec/integrations/report_spec.rb
onfido-0.0.3 spec/integrations/report_spec.rb
onfido-0.0.2 spec/integrations/report_spec.rb
onfido-0.0.1 spec/integrations/report_spec.rb