Add coverage for invalid template

This commit is contained in:
Matt Jankowski 2024-10-12 17:24:50 -04:00
parent 09a85b5c54
commit ee867c2052

View file

@ -12,6 +12,8 @@ RSpec.describe Webhook do
it { is_expected.to_not allow_values([], %w(account.invalid)).for(:events) }
it { is_expected.to_not allow_values('{{account }').for(:template) }
context 'when current_account is assigned' do
subject { Fabricate.build :webhook, current_account: account }