diff options
Diffstat (limited to 'spec/helpers/projects_helper_spec.rb')
-rw-r--r-- | spec/helpers/projects_helper_spec.rb | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/spec/helpers/projects_helper_spec.rb b/spec/helpers/projects_helper_spec.rb index 303e3c78153..e6cd11a4d70 100644 --- a/spec/helpers/projects_helper_spec.rb +++ b/spec/helpers/projects_helper_spec.rb @@ -401,40 +401,20 @@ RSpec.describe ProjectsHelper do context 'Security & Compliance tabs' do before do - stub_feature_flags(secure_security_and_compliance_configuration_page_on_ce: feature_flag_enabled) allow(helper).to receive(:can?).with(user, :read_security_configuration, project).and_return(can_read_security_configuration) end context 'when user cannot read security configuration' do let(:can_read_security_configuration) { false } - context 'when feature flag is disabled' do - let(:feature_flag_enabled) { false } - - it { is_expected.not_to include(:security_configuration) } - end - - context 'when feature flag is enabled' do - let(:feature_flag_enabled) { true } - - it { is_expected.not_to include(:security_configuration) } - end + it { is_expected.not_to include(:security_configuration) } end context 'when user can read security configuration' do let(:can_read_security_configuration) { true } + let(:feature_flag_enabled) { true } - context 'when feature flag is disabled' do - let(:feature_flag_enabled) { false } - - it { is_expected.not_to include(:security_configuration) } - end - - context 'when feature flag is enabled' do - let(:feature_flag_enabled) { true } - - it { is_expected.to include(:security_configuration) } - end + it { is_expected.to include(:security_configuration) } end end |