diff options
author | Mark Fletcher <mark@gitlab.com> | 2018-01-19 15:04:45 +0300 |
---|---|---|
committer | Mark Fletcher <mark@gitlab.com> | 2018-01-19 15:04:45 +0300 |
commit | 6dcba97c83acfde801db0d51a3911d58f8f5e45a (patch) | |
tree | 4067a051dc44a51dfe05ebfc5dbe4420cb454113 /spec/controllers/admin | |
parent | ee58763158ed10f12a8fe7c089257a532fe6e724 (diff) |
Permits 'password_authentication_enabled_for_git' parameter for ApplicationSettingsController
Diffstat (limited to 'spec/controllers/admin')
-rw-r--r-- | spec/controllers/admin/application_settings_controller_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/controllers/admin/application_settings_controller_spec.rb b/spec/controllers/admin/application_settings_controller_spec.rb index 2565622f8df..cc1b1e5039e 100644 --- a/spec/controllers/admin/application_settings_controller_spec.rb +++ b/spec/controllers/admin/application_settings_controller_spec.rb @@ -51,6 +51,13 @@ describe Admin::ApplicationSettingsController do sign_in(admin) end + it 'updates the password_authentication_enabled_for_git setting' do + put :update, application_setting: { password_authentication_enabled_for_git: "0" } + + expect(response).to redirect_to(admin_application_settings_path) + expect(ApplicationSetting.current.password_authentication_enabled_for_git).to eq(false) + end + it 'updates the default_project_visibility for string value' do put :update, application_setting: { default_project_visibility: "20" } |