Fix specs.

This commit is contained in:
Guo Xiang Tan
2017-07-24 15:56:08 +09:00
parent 25448b70e4
commit fa09a02201
4 changed files with 8 additions and 14 deletions

View File

@ -1155,9 +1155,7 @@ describe Topic do
let(:topic) { Fabricate.build(:topic) }
let(:closing_topic) do
Fabricate(:topic,
topic_timers: [Fabricate(:topic_timer, execute_at: 5.hours.from_now)]
)
Fabricate(:topic_timer, execute_at: 5.hours.from_now).topic
end
let(:admin) { Fabricate(:admin) }