diff options
author | Stefan Hanreich <stefanhani@gmail.com> | 2017-06-19 14:16:41 +0200 |
---|---|---|
committer | Stefan Hanreich <stefanhani@gmail.com> | 2017-06-19 14:16:41 +0200 |
commit | 071603a0a59ff315b1d6b1ee2996b37a37cb3c75 (patch) | |
tree | e6aed23b1ddc78f08a2b4d7099cc472794980adc /spec/models | |
parent | da737f13a963075ffc952756cfd6da2997d1a348 (diff) | |
download | gitlab-ce-071603a0a59ff315b1d6b1ee2996b37a37cb3c75.tar.gz |
fixed incorrect test case (for real), added another one
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/ci/build_spec.rb | 3 |
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 |