diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2016-06-30 06:35:00 +0300 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2016-06-30 06:35:00 +0300 |
commit | 4a8a69837a9a14fca39bf089099b581602d983f2 (patch) | |
tree | 79c028de4c65c580a4f5d462a3ac4202dbcd0e72 /spec/models/application_setting_spec.rb | |
parent | 20b9bb2029972c5f5334d6d684e0d60edb034c5f (diff) |
Add Application Setting to configure default Repository Path for new projects
Diffstat (limited to 'spec/models/application_setting_spec.rb')
-rw-r--r-- | spec/models/application_setting_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/models/application_setting_spec.rb b/spec/models/application_setting_spec.rb index d84f3e998f5..2ea1320267c 100644 --- a/spec/models/application_setting_spec.rb +++ b/spec/models/application_setting_spec.rb @@ -40,6 +40,16 @@ describe ApplicationSetting, models: true do it_behaves_like 'an object with email-formated attributes', :admin_notification_email do subject { setting } end + + context 'repository storages inclussion' do + before do + storages = { 'custom' => 'tmp/tests/custom_repositories' } + allow(Gitlab.config.repositories).to receive(:storages).and_return(storages) + end + + it { is_expected.to allow_value('custom').for(:repository_storage) } + it { is_expected.not_to allow_value('alternative').for(:repository_storage) } + end end context 'restricted signup domains' do |