diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-25 18:09:00 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-25 18:09:00 +0300 |
commit | 10cc2d7a724da4c74b9be7efdbd013c1744047ee (patch) | |
tree | 796f228f98bc29ab2cd03f1fbcc6e42adb67d93c /spec/requests/users_controller_spec.rb | |
parent | 6bc190088ee629fca757b135d25e74cc09c9cb9d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/requests/users_controller_spec.rb')
-rw-r--r-- | spec/requests/users_controller_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/requests/users_controller_spec.rb b/spec/requests/users_controller_spec.rb index b224ef87229..f3ddcbef1c2 100644 --- a/spec/requests/users_controller_spec.rb +++ b/spec/requests/users_controller_spec.rb @@ -268,6 +268,14 @@ RSpec.describe UsersController do end it_behaves_like 'renders all public keys' + + context 'when public visibility is restricted' do + before do + stub_application_setting(restricted_visibility_levels: [Gitlab::VisibilityLevel::PUBLIC]) + end + + it_behaves_like 'renders all public keys' + end end end end |