diff options
Diffstat (limited to 'spec/models/concerns/cascading_namespace_setting_attribute_spec.rb')
-rw-r--r-- | spec/models/concerns/cascading_namespace_setting_attribute_spec.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/spec/models/concerns/cascading_namespace_setting_attribute_spec.rb b/spec/models/concerns/cascading_namespace_setting_attribute_spec.rb index 02cd8557231..e8f2b18e662 100644 --- a/spec/models/concerns/cascading_namespace_setting_attribute_spec.rb +++ b/spec/models/concerns/cascading_namespace_setting_attribute_spec.rb @@ -17,18 +17,6 @@ RSpec.describe NamespaceSetting, 'CascadingNamespaceSettingAttribute' do describe '#delayed_project_removal' do subject(:delayed_project_removal) { subgroup_settings.delayed_project_removal } - context 'when the feature is disabled' do - before do - stub_feature_flags(cascading_namespace_settings: false) - - group_settings.update!(delayed_project_removal: true) - end - - it 'does not cascade' do - expect(delayed_project_removal).to eq(nil) - end - end - context 'when there is no parent' do context 'and the value is not nil' do before do @@ -192,16 +180,6 @@ RSpec.describe NamespaceSetting, 'CascadingNamespaceSettingAttribute' do end end - context 'when the feature is disabled' do - before do - stub_feature_flags(cascading_namespace_settings: false) - - group_settings.update!(delayed_project_removal: true) - end - - it_behaves_like 'not locked' - end - context 'when attribute is locked by self' do before do subgroup_settings.update!(lock_delayed_project_removal: true) |