spec/integrations/extraction_spec.rb in onfido-1.1.1 vs spec/integrations/extraction_spec.rb in onfido-2.0.0

- old
+ new

@@ -1,18 +1,22 @@ +# frozen_string_literal: true + require 'tempfile' describe Onfido::Extraction do - subject(:extraction) { described_class.new } + include_context 'fake onfido api' + subject(:extraction) { onfido.extraction } + describe '#create' do let(:params) do { document_id: '7568415-123123-123123' } end it 'creates a new extraction' do - response = extraction.create(params) + response = extraction.create(**params) expect(response['document_id']).to eq('7568415-123123-123123') end end end