Not sure how this spec actually worked in the past.

This commit is contained in:
Guo Xiang Tan 2017-07-24 14:13:23 +09:00
parent 381a2a55be
commit 7f1e74a272
1 changed files with 8 additions and 4 deletions

View File

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