diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-17 00:08:30 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-17 00:08:30 +0000 |
commit | e91080371b32e69d038b3a94261688c09dbcd641 (patch) | |
tree | b2048c031771a959f28368de5932122b0e2ca749 /spec/models/namespace/root_storage_statistics_spec.rb | |
parent | 32cfd14a94117d1e56524727e7d1b649493f5790 (diff) | |
download | gitlab-ce-e91080371b32e69d038b3a94261688c09dbcd641.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/namespace/root_storage_statistics_spec.rb')
-rw-r--r-- | spec/models/namespace/root_storage_statistics_spec.rb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/spec/models/namespace/root_storage_statistics_spec.rb b/spec/models/namespace/root_storage_statistics_spec.rb index c2a0c8c8a7c..3b6062c0d8a 100644 --- a/spec/models/namespace/root_storage_statistics_spec.rb +++ b/spec/models/namespace/root_storage_statistics_spec.rb @@ -317,31 +317,6 @@ RSpec.describe Namespace::RootStorageStatistics, type: :model do expect(root_storage_statistics.reload.internal_forks_storage_size).to eq(0) end - - context 'when the feature flag is off' do - before do - stub_feature_flags(root_storage_statistics_calculate_forks: false) - end - - it 'does not aggregate fork storage sizes' do - project = create_project(size_multiplier: 150) - create_fork(project, size_multiplier: 100) - - root_storage_statistics.recalculate! - - expect(root_storage_statistics.reload.private_forks_storage_size).to eq(0) - end - - it 'aggregates fork sizes for enabled namespaces' do - stub_feature_flags(root_storage_statistics_calculate_forks: namespace) - project = create_project(size_multiplier: 150) - project_fork = create_fork(project, size_multiplier: 100) - - root_storage_statistics.recalculate! - - expect(root_storage_statistics.reload.private_forks_storage_size).to eq(project_fork.statistics.storage_size) - end - end end end |