summaryrefslogtreecommitdiff
path: root/spec/models/analytics/cycle_analytics
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-26 21:11:52 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-26 21:11:52 +0000
commite04b8c1e60649802ae4249dae7fa7aaf3f0a83c7 (patch)
treedc5607b353067e079443b9478572e4a394bfe011 /spec/models/analytics/cycle_analytics
parentcea01cb81787f0d2c119b287a5833f2e267324bc (diff)
downloadgitlab-ce-e04b8c1e60649802ae4249dae7fa7aaf3f0a83c7.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/analytics/cycle_analytics')
-rw-r--r--spec/models/analytics/cycle_analytics/aggregation_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/models/analytics/cycle_analytics/aggregation_spec.rb b/spec/models/analytics/cycle_analytics/aggregation_spec.rb
index a51c21dc87e..e69093f454a 100644
--- a/spec/models/analytics/cycle_analytics/aggregation_spec.rb
+++ b/spec/models/analytics/cycle_analytics/aggregation_spec.rb
@@ -158,6 +158,16 @@ RSpec.describe Analytics::CycleAnalytics::Aggregation, type: :model, feature_cat
end.not_to change { described_class.count }
end
end
+
+ context 'when the aggregation was disabled for some reason' do
+ it 're-enables the aggregation' do
+ create(:cycle_analytics_aggregation, enabled: false, namespace: group)
+
+ aggregation = described_class.safe_create_for_namespace(group)
+
+ expect(aggregation).to be_enabled
+ end
+ end
end
describe '#load_batch' do