diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-10-27 16:09:11 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-10-30 09:05:06 +0100 |
commit | 7dbf114f595f8ff3ff41339d81d41b7722b97d2a (patch) | |
tree | dcaab3b79250107e9ba9deb607c408059d24191b /spec/services | |
parent | 6d7384f59525e2d54c30011237499c27bde145ef (diff) | |
download | gitlab-ce-7dbf114f595f8ff3ff41339d81d41b7722b97d2a.tar.gz |
Use the correct project visibility in system hooks
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/system_hooks_service_spec.rb | 6 |
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 |