summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Hanreich <stefanhani@gmail.com>2017-06-19 14:16:41 +0200
committerStefan Hanreich <stefanhani@gmail.com>2017-06-19 14:16:41 +0200
commit071603a0a59ff315b1d6b1ee2996b37a37cb3c75 (patch)
treee6aed23b1ddc78f08a2b4d7099cc472794980adc
parentda737f13a963075ffc952756cfd6da2997d1a348 (diff)
downloadgitlab-ce-071603a0a59ff315b1d6b1ee2996b37a37cb3c75.tar.gz
fixed incorrect test case (for real), added another one
-rw-r--r--spec/models/ci/build_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb
index 523650eb506..dec105d13ec 100644
--- a/spec/models/ci/build_spec.rb
+++ b/spec/models/ci/build_spec.rb
@@ -1042,7 +1042,8 @@ describe Ci::Build, :models do
'a' * 64 => 'a' * 63,
'FOO' => 'foo',
'-' + 'a' * 61 + '-' => 'a' * 61,
- '-' + 'a' * 63 => 'a' * 63,
+ '-' + 'a' * 62 + '-' => 'a' * 62,
+ '-' + 'a' * 63 + '-' => 'a' * 62,
'a' * 62 + ' ' => 'a' * 62
}.each do |ref, slug|
it "transforms #{ref} to #{slug}" do