Skip to content

Commit

Permalink
DEV: Replace deprecated queue_jobs site setting in tests (#464)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Drenmi authored Oct 27, 2023
1 parent 76e7c81 commit ec7945d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/integration/invitee_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
describe DiscoursePostEvent::Invitee do
before do
freeze_time
SiteSetting.queue_jobs = false
Jobs.run_immediately!
SiteSetting.calendar_enabled = true
SiteSetting.discourse_post_event_enabled = true
end
Expand Down
2 changes: 1 addition & 1 deletion spec/integration/topic_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

before do
freeze_time
SiteSetting.queue_jobs = false
Jobs.run_immediately!
SiteSetting.calendar_enabled = true
SiteSetting.discourse_post_event_enabled = true
end
Expand Down
2 changes: 1 addition & 1 deletion spec/requests/invitees_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
module DiscoursePostEvent
describe InviteesController do
before do
SiteSetting.queue_jobs = false
Jobs.run_immediately!
SiteSetting.calendar_enabled = true
SiteSetting.discourse_post_event_enabled = true
sign_in(user)
Expand Down

0 comments on commit ec7945d

Please sign in to comment.