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
|
describe Jobs::TopicReminder do
|
||||||
let(:admin) { Fabricate(:admin) }
|
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
|
before do
|
||||||
SiteSetting.queue_jobs = true
|
SiteSetting.queue_jobs = true
|
||||||
|
|
Loading…
Reference in New Issue