spec/integrations/check_spec.rb in onfido-0.0.4 vs spec/integrations/check_spec.rb in onfido-0.1.0

- old
+ new

@@ -1,15 +1,10 @@ describe Onfido::Check do subject(:check) { described_class.new } let(:applicant_id) { '61f659cb-c90b-4067-808a-6136b5c01351' } describe '#create' do - let(:params) do - { - type: 'express', - reports: [{name: 'identity'}] - } - end + let(:params) { { type: 'express', reports: [{ name: 'identity' }] } } it 'creates a new check for an applicant' do response = check.create(applicant_id, params) expect(response['id']).not_to be_nil end