mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 23:11:44 +08:00
Fix specs.
This commit is contained in:
parent
c12edda766
commit
25448b70e4
|
@ -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,
|
|
||||||
status_type: TopicTimer.types[:publish_to_category],
|
Fabricate(:topic_timer,
|
||||||
category_id: another_category.id
|
status_type: TopicTimer.types[:publish_to_category],
|
||||||
)
|
category_id: another_category.id,
|
||||||
])
|
topic: topic
|
||||||
|
)
|
||||||
|
|
||||||
|
topic
|
||||||
end
|
end
|
||||||
|
|
||||||
before do
|
before do
|
||||||
|
|
Loading…
Reference in New Issue
Block a user