Add coverage for invalid template

pull/32516/head
Matt Jankowski 2024-10-12 17:24:50 -04:00
parent 09a85b5c54
commit ee867c2052
1 changed files with 2 additions and 0 deletions

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 }