Fix specs.

This commit is contained in:
Guo Xiang Tan 2017-07-24 15:52:56 +09:00
parent c12edda766
commit 25448b70e4

View File

@ -5,12 +5,15 @@ RSpec.describe Jobs::PublishTopicToCategory do
let(:another_category) { Fabricate(:category) } let(:another_category) { Fabricate(:category) }
let(:topic) do let(:topic) do
Fabricate(:topic, category: category, topic_timers: [ topic = Fabricate(:topic, category: category)
Fabricate(:topic_timer, Fabricate(:topic_timer,
status_type: TopicTimer.types[:publish_to_category], status_type: TopicTimer.types[:publish_to_category],
category_id: another_category.id category_id: another_category.id,
topic: topic
) )
])
topic
end end
before do before do