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
058b7465
Commit
058b7465
authored
Jun 24, 2020
by
nelbacha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor usage of shared example
parent
81d89101
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
ee/spec/views/shared/deploy_tokens/_form.html.haml_spec.rb
ee/spec/views/shared/deploy_tokens/_form.html.haml_spec.rb
+14
-14
No files found.
ee/spec/views/shared/deploy_tokens/_form.html.haml_spec.rb
View file @
058b7465
...
@@ -28,19 +28,19 @@ describe 'shared/deploy_tokens/_form.html.haml' do
...
@@ -28,19 +28,19 @@ describe 'shared/deploy_tokens/_form.html.haml' do
end
end
end
end
where
(
:
shared_examples_name
,
:
packages_enabled
,
:feature_enabled
,
:role
,
:subject
,
:can
)
do
where
(
:packages_enabled
,
:feature_enabled
,
:role
,
:subject
,
:can
)
do
'display deploy token settings'
|
true
|
true
|
:owner
|
:group
|
true
true
|
true
|
:owner
|
:group
|
true
'display deploy token settings'
|
true
|
false
|
:owner
|
:group
|
false
true
|
false
|
:owner
|
:group
|
false
'display deploy token settings'
|
false
|
true
|
:owner
|
:group
|
false
false
|
true
|
:owner
|
:group
|
false
'display deploy token settings'
|
false
|
false
|
:owner
|
:group
|
false
false
|
false
|
:owner
|
:group
|
false
'display deploy token settings'
|
true
|
true
|
:maintainer
|
:group
|
true
true
|
true
|
:maintainer
|
:group
|
true
'display deploy token settings'
|
true
|
false
|
:maintainer
|
:group
|
false
true
|
false
|
:maintainer
|
:group
|
false
'display deploy token settings'
|
false
|
true
|
:maintainer
|
:group
|
false
false
|
true
|
:maintainer
|
:group
|
false
'display deploy token settings'
|
false
|
false
|
:maintainer
|
:group
|
false
false
|
false
|
:maintainer
|
:group
|
false
'display deploy token settings'
|
true
|
true
|
:maintainer
|
:project
|
true
true
|
true
|
:maintainer
|
:project
|
true
'display deploy token settings'
|
false
|
true
|
:maintainer
|
:project
|
false
false
|
true
|
:maintainer
|
:project
|
false
'display deploy token settings'
|
true
|
false
|
:maintainer
|
:project
|
false
true
|
false
|
:maintainer
|
:project
|
false
'display deploy token settings'
|
false
|
false
|
:maintainer
|
:project
|
false
false
|
false
|
:maintainer
|
:project
|
false
end
end
with_them
do
with_them
do
...
@@ -51,6 +51,6 @@ describe 'shared/deploy_tokens/_form.html.haml' do
...
@@ -51,6 +51,6 @@ describe 'shared/deploy_tokens/_form.html.haml' do
stub_licensed_features
(
packages:
feature_enabled
)
stub_licensed_features
(
packages:
feature_enabled
)
end
end
it_behaves_like
params
[
:shared_examples_name
]
,
params
[
:role
],
params
[
:subject
],
params
[
:can
]
it_behaves_like
'display deploy token settings'
,
params
[
:role
],
params
[
:subject
],
params
[
:can
]
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