summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-03-26 19:56:18 +0000
committerRémy Coutable <remy@rymai.me>2017-03-26 19:56:18 +0000
commitc848735db6e77b7400ea88f9286bb12ff840a318 (patch)
treea41885e5ef64b1299dfdbe73b388212fd0b8ab11 /spec
parent37b5b7a5e6907c364800f6f58d37b6c0412255da (diff)
parent7a1236031aabd900facdbe7bd4940e03175d477b (diff)
downloadgitlab-ce-c848735db6e77b7400ea88f9286bb12ff840a318.tar.gz
Merge branch '29116-maxint-error' into 'master'
Fix projects_limit RangeError on user create Closes #29116 See merge request !10209
Diffstat (limited to 'spec')
-rw-r--r--spec/models/user_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index 90378179e32..570abd44dc6 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -81,6 +81,7 @@ describe User, models: true do
it { is_expected.to validate_numericality_of(:projects_limit) }
it { is_expected.to allow_value(0).for(:projects_limit) }
it { is_expected.not_to allow_value(-1).for(:projects_limit) }
+ it { is_expected.not_to allow_value(Gitlab::Database::MAX_INT_VALUE + 1).for(:projects_limit) }
it { is_expected.to validate_length_of(:bio).is_at_most(255) }