spec/integrations/live_photo_spec.rb in onfido-1.0.0 vs spec/integrations/live_photo_spec.rb in onfido-1.1.0
- old
+ new
@@ -13,20 +13,20 @@
file.close
file.unlink
end
it 'creates a new photo' do
- response = live_photo.create(params)
+ response = live_photo.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/photo.jpg' }
it 'raises an ArgumentError' do
- expect { live_photo.create(params) }.
+ expect { live_photo.create(**params) }.
to raise_error(ArgumentError, /must be a `File`-like object/)
end
end
end