BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
3417221e
Unverified
Commit
3417221e
authored
May 04, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pipeline variables feature spec
parent
c6e394bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
pipelines_spec.rb
spec/features/projects/pipelines/pipelines_spec.rb
+15
-0
No files found.
spec/features/projects/pipelines/pipelines_spec.rb
View file @
3417221e
...
...
@@ -522,6 +522,21 @@ describe 'Pipelines', :js do
expect
(
Ci
::
Pipeline
.
last
).
to
be_web
end
context
'when variables are specified'
do
it
'creates a new pipeline with variables'
do
page
.
within
'.ci-variable-row-body'
do
fill_in
"Input variable key"
,
with:
"key_name"
fill_in
"Input variable value"
,
with:
"value"
end
expect
{
click_on
'Create pipeline'
}
.
to
change
{
Ci
::
Pipeline
.
count
}.
by
(
1
)
expect
(
Ci
::
Pipeline
.
last
.
variables
.
map
{
|
var
|
var
.
slice
(
:key
,
:secret_value
)
})
.
to
eq
[{
key:
"key_name"
,
secret_value:
"value"
}.
with_indifferent_access
]
end
end
end
context
'without gitlab-ci.yml'
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