summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-10-30 08:53:27 +0000
committerLin Jen-Shin <godfat@godfat.org>2017-10-30 18:25:43 +0800
commit6c86a586307614397ec2eac701fc896ed073fdfc (patch)
treed48c518db42de5f8250cca691d36d4743e6d4bba /spec
parent4d05f20e4b0e8c83be152773601c24381274e675 (diff)
downloadgitlab-ce-6c86a586307614397ec2eac701fc896ed073fdfc.tar.gz
Merge branch 'bvl-fix-system-hook-project-visibility' into 'master'
Use the correct project visibility in system hooks Closes #39496 See merge request gitlab-org/gitlab-ce!15065
Diffstat (limited to 'spec')
-rw-r--r--spec/services/system_hooks_service_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/services/system_hooks_service_spec.rb b/spec/services/system_hooks_service_spec.rb
index 8b5d9187785..8f7aea533dc 100644
--- a/spec/services/system_hooks_service_spec.rb
+++ b/spec/services/system_hooks_service_spec.rb
@@ -63,6 +63,12 @@ describe SystemHooksService do
:group_id, :user_id, :user_username, :user_name, :user_email, :group_access
)
end
+
+ it 'includes the correct project visibility level' do
+ data = event_data(project, :create)
+
+ expect(data[:project_visibility]).to eq('private')
+ end
end
context 'event names' do