summaryrefslogtreecommitdiff
path: root/spec/support/shared_examples/models/integrations/has_web_hook_shared_examples.rb
diff options
context:
space:
mode:
authorGitLab Release Tools Bot <delivery-team+release-tools@gitlab.com>2022-02-03 23:40:30 +0000
committerGitLab Release Tools Bot <delivery-team+release-tools@gitlab.com>2022-02-03 23:40:30 +0000
commit871acce6c1e3de3f1ab09f0dcb6bcf822bd138f0 (patch)
tree0f6970f168ddba8b32efcada5c7407676bb3da15 /spec/support/shared_examples/models/integrations/has_web_hook_shared_examples.rb
parentd81e007aec64d5e0aade50cb18847fa9fb6d0e77 (diff)
parentbb9e85e5e3750dd3acf3bf99a455b0a562ec6ace (diff)
downloadgitlab-ce-14-5-stable.tar.gz
Merge remote-tracking branch 'dev/14-5-stable' into 14-5-stable14-5-stable
Diffstat (limited to 'spec/support/shared_examples/models/integrations/has_web_hook_shared_examples.rb')
-rw-r--r--spec/support/shared_examples/models/integrations/has_web_hook_shared_examples.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/support/shared_examples/models/integrations/has_web_hook_shared_examples.rb b/spec/support/shared_examples/models/integrations/has_web_hook_shared_examples.rb
index 1fa340a0cf4..ae72cb6ec5d 100644
--- a/spec/support/shared_examples/models/integrations/has_web_hook_shared_examples.rb
+++ b/spec/support/shared_examples/models/integrations/has_web_hook_shared_examples.rb
@@ -37,6 +37,16 @@ RSpec.shared_examples Integrations::HasWebHook do
it 'returns a boolean' do
expect(integration.hook_ssl_verification).to be_in([true, false])
end
+
+ it 'delegates to #enable_ssl_verification if the concern is included' do
+ next unless integration.is_a?(Integrations::EnableSslVerification)
+
+ [true, false].each do |value|
+ integration.enable_ssl_verification = value
+
+ expect(integration.hook_ssl_verification).to be(value)
+ end
+ end
end
describe '#update_web_hook!' do