DEV: Convert some files to autoloading and various improvements (#26860)

This commit is contained in:
Osama Sayegh
2024-05-06 23:12:55 +03:00
committed by GitHub
parent 8bbcd409e3
commit 2f2355b0ad
63 changed files with 90 additions and 186 deletions

View File

@ -1,7 +1,5 @@
# frozen_string_literal: true
require_relative "../discourse_automation_helper"
describe "Topic" do
let!(:raw) { "this is me testing a new topic by automation" }
let!(:title) { "This is a new topic created by automation" }
@ -40,7 +38,7 @@ describe "Topic" do
it "creates expected topic" do
freeze_time 6.hours.from_now do
expect {
Jobs::DiscourseAutomationTracker.new.execute
Jobs::DiscourseAutomation::Tracker.new.execute
topic = Topic.last
expect(topic.category.id).to eq(category.id)