DEV: Fix linting in notify_category_change_spec (#29175)

This commit is contained in:
Jarek Radosz 2024-10-11 19:55:33 +02:00 committed by GitHub
parent 65a1e149ad
commit 7ab4df9a04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -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