Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-12-25 09:09:59 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-12-25 09:09:59 +0300
commit6eceaa36d1e565e7ab8f5d1d082200f18cddfb12 (patch)
treecfd1f3fac5709891dc9d668ea919a4eba0009fc4 /spec/lib
parenta047375711192f9c872fc38efbb0c340ada29a7d (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/gitlab/sidekiq_config_spec.rb8
-rw-r--r--spec/lib/gitlab/usage_data_counters/work_item_activity_unique_counter_spec.rb8
2 files changed, 16 insertions, 0 deletions
diff --git a/spec/lib/gitlab/sidekiq_config_spec.rb b/spec/lib/gitlab/sidekiq_config_spec.rb
index 00b1666106f..5885151ecb5 100644
--- a/spec/lib/gitlab/sidekiq_config_spec.rb
+++ b/spec/lib/gitlab/sidekiq_config_spec.rb
@@ -18,6 +18,14 @@ RSpec.describe Gitlab::SidekiqConfig do
end
describe '.cron_jobs' do
+ around do |example|
+ described_class.clear_memoization(:cron_jobs)
+
+ example.run
+
+ described_class.clear_memoization(:cron_jobs)
+ end
+
it 'renames job_class to class and removes incomplete jobs' do
expect(Gitlab)
.to receive(:config)
diff --git a/spec/lib/gitlab/usage_data_counters/work_item_activity_unique_counter_spec.rb b/spec/lib/gitlab/usage_data_counters/work_item_activity_unique_counter_spec.rb
index aaf509b6f81..0ab5dec8ecf 100644
--- a/spec/lib/gitlab/usage_data_counters/work_item_activity_unique_counter_spec.rb
+++ b/spec/lib/gitlab/usage_data_counters/work_item_activity_unique_counter_spec.rb
@@ -44,4 +44,12 @@ RSpec.describe Gitlab::UsageDataCounters::WorkItemActivityUniqueCounter, :clean_
it_behaves_like 'work item unique counter'
end
+
+ describe '.track_work_item_todo_marked_action' do
+ subject(:track_event) { described_class.track_work_item_mark_todo_action(author: user) }
+
+ let(:event_name) { described_class::WORK_ITEM_TODO_MARKED }
+
+ it_behaves_like 'work item unique counter'
+ end
end