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
f42c1122
Commit
f42c1122
authored
Nov 27, 2017
by
Zeger-Jan van de Weg
Committed by
Kamil Trzcinski
Dec 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add coverage on legacy artifacts for Ci::Build
parent
85751657
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
spec/models/ci/build_spec.rb
spec/models/ci/build_spec.rb
+6
-6
No files found.
spec/models/ci/build_spec.rb
View file @
f42c1122
...
...
@@ -1037,9 +1037,9 @@ describe Ci::Build do
describe
'#merge_request'
do
def
create_mr
(
build
,
pipeline
,
factory: :merge_request
,
created_at:
Time
.
now
)
create
(
factory
,
source_project:
pipeline
.
project
,
target_project:
pipeline
.
project
,
source_branch:
build
.
ref
,
created_at:
created_at
)
target_project:
pipeline
.
project
,
source_branch:
build
.
ref
,
created_at:
created_at
)
end
context
'when a MR has a reference to the pipeline'
do
...
...
@@ -1338,7 +1338,7 @@ describe Ci::Build do
context
'when `when` is undefined'
do
before
do
build
.
when
=
nil
end
end
context
'use from gitlab-ci.yml'
do
let
(
:pipeline
)
{
create
(
:ci_pipeline
)
}
...
...
@@ -1379,7 +1379,7 @@ describe Ci::Build do
end
end
end
end
end
describe
'#variables'
do
let
(
:container_registry_enabled
)
{
false
}
...
...
@@ -1482,7 +1482,7 @@ describe Ci::Build do
before
do
environment_variables
<<
{
key:
'CI_ENVIRONMENT_URL'
,
value:
url
,
public:
true
}
{
key:
'CI_ENVIRONMENT_URL'
,
value:
url
,
public:
true
}
end
context
'when the URL was set from the job'
do
...
...
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