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
65563c7b
Commit
65563c7b
authored
Jun 01, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Now secret_variables_for would return the variables
parent
76e738fc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
spec/models/project_spec.rb
spec/models/project_spec.rb
+2
-3
No files found.
spec/models/project_spec.rb
View file @
65563c7b
...
@@ -1750,8 +1750,7 @@ describe Project, models: true do
...
@@ -1750,8 +1750,7 @@ describe Project, models: true do
shared_examples
'ref is protected'
do
shared_examples
'ref is protected'
do
it
'contains all the variables'
do
it
'contains all the variables'
do
is_expected
.
to
contain_exactly
(
is_expected
.
to
contain_exactly
(
secret_variable
,
protected_variable
)
*
[
secret_variable
,
protected_variable
].
map
(
&
:to_runner_variable
))
end
end
end
end
...
@@ -1762,7 +1761,7 @@ describe Project, models: true do
...
@@ -1762,7 +1761,7 @@ describe Project, models: true do
end
end
it
'contains only the secret variables'
do
it
'contains only the secret variables'
do
is_expected
.
to
contain_exactly
(
secret_variable
.
to_runner_variable
)
is_expected
.
to
contain_exactly
(
secret_variable
)
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