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
05a00b84
Commit
05a00b84
authored
Mar 29, 2022
by
Sri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code review fixes
parent
fd387d06
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
19 deletions
+16
-19
spec/lib/sidebars/projects/menus/infrastructure_menu_spec.rb
spec/lib/sidebars/projects/menus/infrastructure_menu_spec.rb
+16
-19
No files found.
spec/lib/sidebars/projects/menus/infrastructure_menu_spec.rb
View file @
05a00b84
...
...
@@ -119,29 +119,25 @@ RSpec.describe Sidebars::Projects::Menus::InfrastructureMenu do
end
it
{
is_expected
.
to
be_nil
}
end
context
'when feature flag is turned off but enabled for
project'
do
context
'when feature flag is enabled for specific
project'
do
before
do
stub_feature_flags
(
incubation_5mp_google_cloud:
false
)
stub_feature_flags
(
incubation_5mp_google_cloud:
project
)
end
it_behaves_like
'access rights checks'
end
context
'when feature flag is turned off but enabled for
group'
do
context
'when feature flag is enabled for specific
group'
do
before
do
stub_feature_flags
(
incubation_5mp_google_cloud:
false
)
stub_feature_flags
(
incubation_5mp_google_cloud:
project
.
group
)
end
it_behaves_like
'access rights checks'
end
context
'when feature flag is turned off but enabled for user
'
do
context
'when feature flag is enabled for specific project
'
do
before
do
stub_feature_flags
(
incubation_5mp_google_cloud:
false
)
stub_feature_flags
(
incubation_5mp_google_cloud:
user
)
end
...
...
@@ -149,4 +145,5 @@ RSpec.describe Sidebars::Projects::Menus::InfrastructureMenu do
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