mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 08:09:33 +08:00
Not sure how this spec actually worked in the past.
This commit is contained in:
parent
381a2a55be
commit
7f1e74a272
|
@ -2,9 +2,13 @@ require 'rails_helper'
|
|||
|
||||
describe Jobs::TopicReminder do
|
||||
let(:admin) { Fabricate(:admin) }
|
||||
let(:topic) { Fabricate(:topic, topic_timers: [
|
||||
Fabricate(:topic_timer, user: admin, status_type: TopicTimer.types[:reminder])
|
||||
]) }
|
||||
|
||||
let(:topic) do
|
||||
Fabricate(:topic_timer,
|
||||
user: admin,
|
||||
status_type: TopicTimer.types[:reminder]
|
||||
).topic
|
||||
end
|
||||
|
||||
before do
|
||||
SiteSetting.queue_jobs = true
|
||||
|
@ -50,5 +54,5 @@ describe Jobs::TopicReminder do
|
|||
}.to_not change { Notification.count }
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user