From 7f7d930559e05343f5c02a3b178974f63453c0b2 Mon Sep 17 00:00:00 2001 From: Osama Sayegh Date: Mon, 6 May 2024 23:12:48 +0300 Subject: [PATCH] DEV: Rename `Jobs::DiscourseAutomationTracker` -> `Jobs::DiscourseAutomation::Tracker` (#289) The class is renamed in https://github.com/discourse/discourse/pull/26860. --- spec/automation/recurring_data_explorer_result_pm_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/automation/recurring_data_explorer_result_pm_spec.rb b/spec/automation/recurring_data_explorer_result_pm_spec.rb index b6f8e59..92f2042 100644 --- a/spec/automation/recurring_data_explorer_result_pm_spec.rb +++ b/spec/automation/recurring_data_explorer_result_pm_spec.rb @@ -47,7 +47,7 @@ describe "RecurringDataExplorerResultPm" do context "when using recurring trigger" do it "sends the pm at recurring date_date" do freeze_time 1.day.from_now do - expect { Jobs::DiscourseAutomationTracker.new.execute }.to change { Topic.count }.by(3) + expect { Jobs::DiscourseAutomation::Tracker.new.execute }.to change { Topic.count }.by(3) title = "Scheduled Report for #{query.name}" expect(Topic.last(3).pluck(:title)).to eq([title, title, title])