spec/integrations/webhook_spec.rb in onfido-3.1.0 vs spec/integrations/webhook_spec.rb in onfido-3.2.0
- old
+ new
@@ -12,10 +12,10 @@
events: ['check.completed', 'report.completed'],
})
end
let(:webhook) { onfido_api.create_webhook(webhook_builder) }
- let(:webhook_id) { webhook.id }
+ let!(:webhook_id) { webhook.id }
it 'creates a webhook' do
expect(webhook).to be_an_instance_of Onfido::Webhook
expect(webhook_id).to_not be_nil
expect(webhook.url).to eq 'https://example.com'