diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-08-17 15:09:03 -0700 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-08-17 16:00:07 -0700 |
commit | a037a79130f7207840baf016316a62e5619ba98e (patch) | |
tree | 04a1e6874a636777b2c404dc36fbfb4e840e2b57 /spec/initializers | |
parent | 1c3a2bc38987a659319314953a1a90263e329c3b (diff) | |
download | gitlab-ce-a037a79130f7207840baf016316a62e5619ba98e.tar.gz |
Setup repositories settings properlymk-setup-settings-properly
Diffstat (limited to 'spec/initializers')
-rw-r--r-- | spec/initializers/settings_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/initializers/settings_spec.rb b/spec/initializers/settings_spec.rb index 092e8c0381c..9a974e70e8c 100644 --- a/spec/initializers/settings_spec.rb +++ b/spec/initializers/settings_spec.rb @@ -27,6 +27,15 @@ describe Settings do expect(repository_settings['failure_reset_time']).to eq(1800) expect(repository_settings['storage_timeout']).to eq(5) end + + it 'can be accessed with dot syntax all the way down' do + expect(Gitlab.config.repositories.storages.broken.failure_count_threshold).to eq(10) + end + + it 'can be accessed in a very specific way that breaks without reassigning each element with Settingslogic' do + storage_settings = Gitlab.config.repositories.storages['broken'] + expect(storage_settings.failure_count_threshold).to eq(10) + end end describe '#host_without_www' do |