Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
6394d560
Commit
6394d560
authored
May 11, 2017
by
Stefan Hanreich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed superfluos tests
parent
5fc22bfa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
spec/models/ci/build_spec.rb
spec/models/ci/build_spec.rb
+1
-7
No files found.
spec/models/ci/build_spec.rb
View file @
6394d560
...
...
@@ -1033,12 +1033,6 @@ describe Ci::Build, :models do
end
describe
'#ref_slug'
do
let
(
:build
)
{
build
(
:ci_build
,
ref:
"'100%"
)
}
subject
{
build
.
ref_slug
}
it
{
is_expected
.
not_to
start_with
(
'-'
)
}
it
{
is_expected
.
not_to
end_with
(
'-'
)
}
{
'master'
=>
'master'
,
'1-foo'
=>
'1-foo'
,
...
...
@@ -1053,7 +1047,7 @@ describe Ci::Build, :models do
it
"transforms
#{
ref
}
to
#{
slug
}
"
do
build
.
ref
=
ref
is_expected
.
to
eq
(
slug
)
expected
(
build
.
ref_slug
)
.
to
eq
(
slug
)
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment