mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 01:56:58 +08:00
DEV: Convert some files to autoloading and various improvements (#26860)
This commit is contained in:
@ -1,7 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require_relative "../discourse_automation_helper"
|
||||
|
||||
describe "UserGlobalNotice" do
|
||||
before { SiteSetting.discourse_automation_enabled = true }
|
||||
|
||||
@ -43,7 +41,7 @@ describe "UserGlobalNotice" do
|
||||
it "creates and destroy global notices" do
|
||||
post = Fabricate(:post, created_at: 1.day.ago)
|
||||
|
||||
expect { Jobs::StalledTopicTracker.new.execute }.to change {
|
||||
expect { Jobs::DiscourseAutomation::StalledTopicTracker.new.execute }.to change {
|
||||
DiscourseAutomation::UserGlobalNotice.count
|
||||
}.by(1)
|
||||
|
||||
|
Reference in New Issue
Block a user