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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
cc3caef9
Commit
cc3caef9
authored
May 23, 2018
by
Olivier Gonzalez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken test
parent
5cf6bade
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
13 deletions
+2
-13
ee/spec/models/ci/build_spec.rb
ee/spec/models/ci/build_spec.rb
+2
-13
No files found.
ee/spec/models/ci/build_spec.rb
View file @
cc3caef9
...
...
@@ -13,9 +13,8 @@ describe Ci::Build do
let
(
:job
)
{
create
(
:ci_build
,
pipeline:
pipeline
)
}
# .codeclimate is deprecated and replaced with .code_quality_artifact (#5779)
describe
'.codeclimate'
do
subject
{
described_class
.
codeclimate
}
describe
'.code_quality'
do
subject
{
described_class
.
code_quality
}
context
'when a job name is codeclimate'
do
let!
(
:job
)
{
create
(
:ci_build
,
pipeline:
pipeline
,
name:
'codeclimate'
)
}
...
...
@@ -29,16 +28,6 @@ describe Ci::Build do
it
{
is_expected
.
to
include
(
job
)
}
end
context
'when a job name is irrelevant'
do
let!
(
:job
)
{
create
(
:ci_build
,
pipeline:
pipeline
,
name:
'codechecker'
)
}
it
{
is_expected
.
not_to
include
(
job
)
}
end
end
describe
'.code_quality'
do
subject
{
described_class
.
code_quality
}
context
'when a job name is code_quality'
do
let!
(
:job
)
{
create
(
:ci_build
,
pipeline:
pipeline
,
name:
'code_quality'
)
}
...
...
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