spec/integrations/document_spec.rb in onfido-1.0.0 vs spec/integrations/document_spec.rb in onfido-1.1.0

- old
+ new

@@ -20,20 +20,20 @@ file.close file.unlink end it 'creates a new document' do - response = document.create(params) + response = document.create(**params) expect(response['id']).not_to be_nil end end context 'passing in a non-File-like file to upload' do let(:file) { 'https://onfido.com/images/logo.png' } it 'raises an ArgumentError' do - expect { document.create(params) }. + expect { document.create(**params) }. to raise_error(ArgumentError, /must be a `File`-like object/) end end end