diff options
Diffstat (limited to 'spec/models/group_spec.rb')
-rw-r--r-- | spec/models/group_spec.rb | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/spec/models/group_spec.rb b/spec/models/group_spec.rb index 2ce75fb1290..68c2d1d3995 100644 --- a/spec/models/group_spec.rb +++ b/spec/models/group_spec.rb @@ -2293,10 +2293,11 @@ RSpec.describe Group do it 'clears both self and descendant cache when the parent value is updated' do expect(Rails.cache).to receive(:delete_multi) .with( - match_array([ - start_with("namespaces:{#{parent.traversal_ids.first}}:first_auto_devops_config:#{parent.id}"), - start_with("namespaces:{#{parent.traversal_ids.first}}:first_auto_devops_config:#{group.id}") - ]) + match_array( + [ + start_with("namespaces:{#{parent.traversal_ids.first}}:first_auto_devops_config:#{parent.id}"), + start_with("namespaces:{#{parent.traversal_ids.first}}:first_auto_devops_config:#{group.id}") + ]) ) parent.update!(auto_devops_enabled: true) @@ -3312,16 +3313,6 @@ RSpec.describe Group do expect(group.packages_policy_subject).to be_a(Packages::Policies::Group) expect(group.packages_policy_subject.group).to eq(group) end - - context 'with feature flag disabled' do - before do - stub_feature_flags(read_package_policy_rule: false) - end - - it 'returns group' do - expect(group.packages_policy_subject).to eq(group) - end - end end describe '#gitlab_deploy_token' do |