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
66855b9b
Commit
66855b9b
authored
Jul 20, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a merge conflict in build specs by moving the code to an EE-only spec file
parent
9af75704
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
34 deletions
+34
-34
spec/models/ci/build_spec.rb
spec/models/ci/build_spec.rb
+0
-34
spec/models/ee/ci/build_spec.rb
spec/models/ee/ci/build_spec.rb
+34
-0
No files found.
spec/models/ci/build_spec.rb
View file @
66855b9b
...
...
@@ -1653,39 +1653,6 @@ describe Ci::Build, :models do
end
end
<<<<<<<
HEAD
describe
'#has_codeclimate_json?'
do
context
'valid build'
do
let!
(
:build
)
do
create
(
:ci_build
,
:artifacts
,
name:
'codeclimate'
,
pipeline:
pipeline
,
options:
{
artifacts:
{
paths:
[
'codeclimate.json'
]
}
}
)
end
it
{
expect
(
build
.
has_codeclimate_json?
).
to
be_truthy
}
end
context
'invalid build'
do
let!
(
:build
)
do
create
(
:ci_build
,
:artifacts
,
name:
'codeclimate'
,
pipeline:
pipeline
,
options:
{}
)
end
it
{
expect
(
build
.
has_codeclimate_json?
).
to
be_falsey
}
=======
describe
'state transition when build fails'
do
context
'when build is configured to be retried'
do
subject
{
create
(
:ci_build
,
:running
,
options:
{
retry:
3
})
}
...
...
@@ -1714,7 +1681,6 @@ describe Ci::Build, :models do
subject
.
drop!
end
>>>>>>>
ce
/
master
end
end
end
spec/models/ee/ci/build_spec.rb
View file @
66855b9b
...
...
@@ -105,4 +105,38 @@ describe Ci::Build, models: true do
end
end
end
describe
'#has_codeclimate_json?'
do
context
'valid build'
do
let!
(
:build
)
do
create
(
:ci_build
,
:artifacts
,
name:
'codeclimate'
,
pipeline:
pipeline
,
options:
{
artifacts:
{
paths:
[
'codeclimate.json'
]
}
}
)
end
it
{
expect
(
build
.
has_codeclimate_json?
).
to
be_truthy
}
end
context
'invalid build'
do
let!
(
:build
)
do
create
(
:ci_build
,
:artifacts
,
name:
'codeclimate'
,
pipeline:
pipeline
,
options:
{}
)
end
it
{
expect
(
build
.
has_codeclimate_json?
).
to
be_falsey
}
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