Fix specs.

This commit is contained in:
Guo Xiang Tan 2017-07-24 15:52:56 +09:00
parent c12edda766
commit 25448b70e4
1 changed files with 9 additions and 6 deletions

View File

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