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
a5ac7e7a
Commit
a5ac7e7a
authored
Mar 02, 2019
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix CI/CD bridge variables unit test
parent
9e12baea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
+8
-14
spec/models/ci/bridge_spec.rb
spec/models/ci/bridge_spec.rb
+8
-14
No files found.
spec/models/ci/bridge_spec.rb
View file @
a5ac7e7a
...
@@ -25,22 +25,16 @@ describe Ci::Bridge do
...
@@ -25,22 +25,16 @@ describe Ci::Bridge do
describe
'#scoped_variables_hash'
do
describe
'#scoped_variables_hash'
do
it
'returns a hash representing variables'
do
it
'returns a hash representing variables'
do
expect
(
bridge
.
scoped_variables_hash
.
keys
).
to
eq
%w[
variables
=
%w[
CI GITLAB_CI GITLAB_FEATURES CI_SERVER_NAME
CI_JOB_NAME CI_JOB_STAGE CI_COMMIT_SHA CI_COMMIT_SHORT_SHA
CI_SERVER_VERSION CI_SERVER_VERSION_MAJOR
CI_COMMIT_BEFORE_SHA CI_COMMIT_REF_NAME CI_COMMIT_REF_SLUG
CI_SERVER_VERSION_MINOR CI_SERVER_VERSION_PATCH
CI_SERVER_REVISION CI_JOB_NAME CI_JOB_STAGE
CI_COMMIT_SHA CI_COMMIT_SHORT_SHA CI_COMMIT_BEFORE_SHA
CI_COMMIT_REF_NAME CI_COMMIT_REF_SLUG CI_NODE_TOTAL
CI_BUILD_REF CI_BUILD_BEFORE_SHA CI_BUILD_REF_NAME
CI_BUILD_REF_SLUG CI_BUILD_NAME CI_BUILD_STAGE
CI_PROJECT_ID CI_PROJECT_NAME CI_PROJECT_PATH
CI_PROJECT_ID CI_PROJECT_NAME CI_PROJECT_PATH
CI_PROJECT_PATH_SLUG CI_PROJECT_NAMESPACE CI_PROJECT_URL
CI_PROJECT_PATH_SLUG CI_PROJECT_NAMESPACE CI_PIPELINE_IID
CI_PROJECT_VISIBILITY CI_PAGES_DOMAIN CI_PAGES_URL
CI_CONFIG_PATH CI_PIPELINE_SOURCE CI_COMMIT_MESSAGE
CI_REGISTRY CI_REGISTRY_IMAGE CI_API_V4_URL
CI_COMMIT_TITLE CI_COMMIT_DESCRIPTION
CI_PIPELINE_IID CI_CONFIG_PATH CI_PIPELINE_SOURCE
CI_COMMIT_MESSAGE CI_COMMIT_TITLE CI_COMMIT_DESCRIPTION
]
]
expect
(
bridge
.
scoped_variables_hash
.
keys
).
to
include
(
*
variables
)
end
end
end
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