summaryrefslogtreecommitdiff
path: root/spec/models/label_spec.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-01-16 14:21:44 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-01-16 14:21:44 +0100
commit4657c28777dfc2729261f895f8e36cbef51395bc (patch)
tree86c2483e843be06ad10c0f0b43f6a20da3a5a6b8 /spec/models/label_spec.rb
parent5456859b5b28baca95ced74179a349563498a5f0 (diff)
parentdaaaf5ef9f182761ac07d76d24d971765134c7e1 (diff)
downloadgitlab-ce-fix/keep-artifacts-button-visibility.tar.gz
Merge branch 'master' into fix/keep-artifacts-button-visibilityfix/keep-artifacts-button-visibility
* master: (579 commits) Conflicts: spec/models/build_spec.rb
Diffstat (limited to 'spec/models/label_spec.rb')
-rw-r--r--spec/models/label_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/models/label_spec.rb b/spec/models/label_spec.rb
index 0c163659a71..a9139f7d4ab 100644
--- a/spec/models/label_spec.rb
+++ b/spec/models/label_spec.rb
@@ -31,12 +31,14 @@ describe Label, models: true do
it 'validates title' do
is_expected.not_to allow_value('G,ITLAB').for(:title)
is_expected.not_to allow_value('').for(:title)
+ is_expected.not_to allow_value('s' * 256).for(:title)
is_expected.to allow_value('GITLAB').for(:title)
is_expected.to allow_value('gitlab').for(:title)
is_expected.to allow_value('G?ITLAB').for(:title)
is_expected.to allow_value('G&ITLAB').for(:title)
is_expected.to allow_value("customer's request").for(:title)
+ is_expected.to allow_value('s' * 255).for(:title)
end
end