Skip to content

Commit 829fc31

Browse files
authored
DEV: Replace deprecated queue_jobs site setting in tests (discourse#88)
The #queue_jobs= method on site settings has been deprecated and replaced by Jobs.run_later! and Jobs.run_immediately!. This PR replaces usages in this plugin so we can remove the fallback in core.
1 parent 2cf2e19 commit 829fc31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/plugin_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128

129129
describe "avatar downloading" do
130130
before do
131-
SiteSetting.queue_jobs = true
131+
Jobs.run_later!
132132
SiteSetting.oauth2_fetch_user_details = true
133133
SiteSetting.oauth2_email_verified = true
134134
end

0 commit comments

Comments
 (0)