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
ca4456e4
Commit
ca4456e4
authored
Jun 14, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test stub for new parameters
parent
de1bd659
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
spec/models/ci/build_spec.rb
spec/models/ci/build_spec.rb
+9
-3
No files found.
spec/models/ci/build_spec.rb
View file @
ca4456e4
...
...
@@ -109,7 +109,7 @@ describe Ci::Build, :models do
describe
'#browsable_artifacts?'
do
subject
{
build
.
browsable_artifacts?
}
context
'artifacts metadata does not exist'
do
before
do
build
.
update_attributes
(
artifacts_metadata:
nil
)
...
...
@@ -1520,9 +1520,14 @@ describe Ci::Build, :models do
allow
(
pipeline
).
to
receive
(
:predefined_variables
)
{
[
pipeline_pre_var
]
}
allow
(
build
).
to
receive
(
:yaml_variables
)
{
[
build_yaml_var
]
}
allow
(
project
).
to
receive
(
:secret_variables_for
).
with
(
build
.
ref
)
do
allow
(
project
).
to
receive
(
:secret_variables_for
).
with
(
ref:
'master'
)
do
[
create
(
:ci_variable
,
key:
'secret'
,
value:
'value'
)]
end
allow
(
project
).
to
receive
(
:secret_variables_for
)
.
with
(
ref:
'master'
,
environment:
nil
)
do
[
create
(
:ci_variable
,
key:
'env'
,
value:
'value'
)]
end
end
it
do
...
...
@@ -1531,7 +1536,8 @@ describe Ci::Build, :models do
project_pre_var
,
pipeline_pre_var
,
build_yaml_var
,
{
key:
'secret'
,
value:
'value'
,
public:
false
}])
{
key:
'secret'
,
value:
'value'
,
public:
false
},
{
key:
'env'
,
value:
'value'
,
public:
false
}])
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