spec/integrations/webhook_spec.rb in onfido-0.3.0 vs spec/integrations/webhook_spec.rb in onfido-0.4.0
- old
+ new
@@ -23,9 +23,18 @@
response = webhook.create(params)
expect(response["url"]).to eq params["url"]
end
end
+ describe '#find' do
+ let(:webhook_id) { 'fcb73186-0733-4f6f-9c57-d9d5ef979443' }
+
+ it 'returns the webhook' do
+ response = webhook.find(webhook_id)
+ expect(response['id']).to eq(webhook_id)
+ end
+ end
+
describe "#all" do
it "returns all the registered webhooks" do
response = webhook.all
expect(response["webhooks"].count).to eq 2
end