diff options
Diffstat (limited to 'spec/models/hooks/system_hook_spec.rb')
-rw-r--r-- | spec/models/hooks/system_hook_spec.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/spec/models/hooks/system_hook_spec.rb b/spec/models/hooks/system_hook_spec.rb index ba94730b1dd..edb307148b6 100644 --- a/spec/models/hooks/system_hook_spec.rb +++ b/spec/models/hooks/system_hook_spec.rb @@ -2,7 +2,17 @@ require "spec_helper" -RSpec.describe SystemHook do +RSpec.describe SystemHook, feature_category: :integrations do + it_behaves_like 'a hook that does not get automatically disabled on failure' do + let(:hook) { create(:system_hook) } + let(:hook_factory) { :system_hook } + let(:default_factory_arguments) { {} } + + def find_hooks + described_class.all + end + end + context 'default attributes' do let(:system_hook) { described_class.new } |