summaryrefslogtreecommitdiff
path: root/spec/models/application_setting_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-22 09:09:36 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-22 09:09:36 +0000
commitaf5fb16f2a9fca958017aade72cf7133e986bc2c (patch)
tree007dcd6a8ae64239f7f89666a8d3a6f440404778 /spec/models/application_setting_spec.rb
parent66b52237fd4f10a62afef61034e90f68cb9363a9 (diff)
downloadgitlab-ce-af5fb16f2a9fca958017aade72cf7133e986bc2c.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/application_setting_spec.rb')
-rw-r--r--spec/models/application_setting_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/models/application_setting_spec.rb b/spec/models/application_setting_spec.rb
index 523e17f82c1..3b2ed979cef 100644
--- a/spec/models/application_setting_spec.rb
+++ b/spec/models/application_setting_spec.rb
@@ -91,6 +91,10 @@ describe ApplicationSetting do
it { is_expected.not_to allow_value(nil).for(:namespace_storage_size_limit) }
it { is_expected.not_to allow_value(-1).for(:namespace_storage_size_limit) }
+ it { is_expected.to allow_value(300).for(:issues_create_limit) }
+ it { is_expected.not_to allow_value('three').for(:issues_create_limit) }
+ it { is_expected.not_to allow_value(nil).for(:issues_create_limit) }
+
context 'grafana_url validations' do
before do
subject.instance_variable_set(:@parsed_grafana_url, nil)