Commit 05a00b84 authored by Sri's avatar Sri

Code review fixes

parent fd387d06
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment