mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-11 18:26:50 +00:00
14 lines
317 B
Ruby
14 lines
317 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
RSpec.describe WebhookEndpoint do
|
|
describe "validations" do
|
|
it { is_expected.to validate_presence_of(:url) }
|
|
it {
|
|
is_expected.to validate_inclusion_of(:webhook_type)
|
|
.in_array(%w(order_cycle_opened payment_status_changed))
|
|
}
|
|
end
|
|
end
|