diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-18 12:45:46 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-18 12:45:46 +0300 |
commit | a7b3560714b4d9cc4ab32dffcd1f74a284b93580 (patch) | |
tree | 7452bd5c3545c2fa67a28aa013835fb4fa071baf /spec/services/application_settings/update_service_spec.rb | |
parent | ee9173579ae56a3dbfe5afe9f9410c65bb327ca7 (diff) |
Add latest changes from gitlab-org/gitlab@14-8-stable-eev14.8.0-rc42
Diffstat (limited to 'spec/services/application_settings/update_service_spec.rb')
-rw-r--r-- | spec/services/application_settings/update_service_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/services/application_settings/update_service_spec.rb b/spec/services/application_settings/update_service_spec.rb index 5c9d2c5e680..e20d59fb0ef 100644 --- a/spec/services/application_settings/update_service_spec.rb +++ b/spec/services/application_settings/update_service_spec.rb @@ -475,6 +475,24 @@ RSpec.describe ApplicationSettings::UpdateService do end end + context 'when users_get_by_id_limit and users_get_by_id_limit_allowlist_raw are passed' do + let(:params) do + { + users_get_by_id_limit: 456, + users_get_by_id_limit_allowlist_raw: 'someone, someone_else' + } + end + + it 'updates users_get_by_id_limit and users_get_by_id_limit_allowlist value' do + subject.execute + + application_settings.reload + + expect(application_settings.users_get_by_id_limit).to eq(456) + expect(application_settings.users_get_by_id_limit_allowlist).to eq(%w[someone someone_else]) + end + end + context 'when require_admin_approval_after_user_signup changes' do context 'when it goes from enabled to disabled' do let(:params) { { require_admin_approval_after_user_signup: false } } |