summaryrefslogtreecommitdiff
path: root/spec/models/application_setting_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/application_setting_spec.rb')
-rw-r--r--spec/models/application_setting_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/application_setting_spec.rb b/spec/models/application_setting_spec.rb
index 15632bac094..9629f858609 100644
--- a/spec/models/application_setting_spec.rb
+++ b/spec/models/application_setting_spec.rb
@@ -36,6 +36,12 @@ describe ApplicationSetting, models: true do
expect(setting).to be_invalid
end
+ it 'does not allow 0' do
+ setting.update(default_artifacts_expire_in: '0')
+
+ expect(setting).to be_invalid
+ end
+
it 'sets the value if it is valid' do
setting.update(default_artifacts_expire_in: '30 days')