mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-25 07:05:20 +00:00
Add coverage for invalid template
This commit is contained in:
parent
09a85b5c54
commit
ee867c2052
|
@ -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 }
|
||||
|
||||
|
|
Loading…
Reference in a new issue