diff options
author | Rémy Coutable <remy@rymai.me> | 2016-12-02 13:54:57 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-12-06 10:23:17 +0100 |
commit | 4e249d5baea99a52915025fc2827d01ab2d77c18 (patch) | |
tree | 98a0eaa592fdb17657e10a6cd9fe941b17c0253d /spec/models/concerns | |
parent | 90c0f610e29976608dbfeeb63bc4763982c5dbc3 (diff) | |
download | gitlab-ce-4e249d5baea99a52915025fc2827d01ab2d77c18.tar.gz |
Use :maximum instead of :within for length validators with a 0..N range25209-improve-length-validators
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/models/concerns')
-rw-r--r-- | spec/models/concerns/issuable_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/concerns/issuable_spec.rb b/spec/models/concerns/issuable_spec.rb index 6f84bffe046..4fa06a8c60a 100644 --- a/spec/models/concerns/issuable_spec.rb +++ b/spec/models/concerns/issuable_spec.rb @@ -35,7 +35,7 @@ describe Issue, "Issuable" do it { is_expected.to validate_presence_of(:iid) } it { is_expected.to validate_presence_of(:author) } it { is_expected.to validate_presence_of(:title) } - it { is_expected.to validate_length_of(:title).is_at_least(0).is_at_most(255) } + it { is_expected.to validate_length_of(:title).is_at_most(255) } end describe "Scope" do |