From 7ab4df9a044e73db77bc7bde41ebe20cb8f53d32 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Fri, 11 Oct 2024 19:55:33 +0200 Subject: [PATCH] DEV: Fix linting in notify_category_change_spec (#29175) --- spec/jobs/notify_category_change_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/jobs/notify_category_change_spec.rb b/spec/jobs/notify_category_change_spec.rb index a5e196b1fad..427023ecdc6 100644 --- a/spec/jobs/notify_category_change_spec.rb +++ b/spec/jobs/notify_category_change_spec.rb @@ -22,7 +22,9 @@ RSpec.describe ::Jobs::NotifyCategoryChange do context "when mailing list mode is enabled" do before { SiteSetting.disable_mailing_list_mode = false } - before { regular_user.user_option.update(mailing_list_mode: true, mailing_list_mode_frequency: 1) } + before do + regular_user.user_option.update(mailing_list_mode: true, mailing_list_mode_frequency: 1) + end before { Jobs.run_immediately! } it "notifies mailing list subscribers" do