diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-08-30 13:04:00 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-08-30 13:04:00 +0300 |
commit | 2f1ef2be6f7d0b28341bfbf533c663b2fcbb7465 (patch) | |
tree | 66484dafe8798f2f0f7dde81a69bb8debf442e19 /spec | |
parent | f11049ab9131b78c14e95bd95b3073c1eaf59392 (diff) | |
parent | 9edaff0d3547ba9854e69655a4ae4d5095b8a25f (diff) |
Merge branch '37198-api-doesn-t-respect-default-group-visibility' into 'master'
Respect the default visibility level when creating a group via the API
Closes #37198
See merge request !13903
Diffstat (limited to 'spec')
-rw-r--r-- | spec/requests/api/groups_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/requests/api/groups_spec.rb b/spec/requests/api/groups_spec.rb index 39d76cdbc74..77c43f92456 100644 --- a/spec/requests/api/groups_spec.rb +++ b/spec/requests/api/groups_spec.rb @@ -444,6 +444,7 @@ describe API::Groups do expect(json_response["name"]).to eq(group[:name]) expect(json_response["path"]).to eq(group[:path]) expect(json_response["request_access_enabled"]).to eq(group[:request_access_enabled]) + expect(json_response["visibility"]).to eq(Gitlab::VisibilityLevel.string_level(Gitlab::CurrentSettings.current_application_settings.default_group_visibility)) end it "creates a nested group", :nested_groups do |