Merge pull request #4790 from tgxworld/add_publish_to_topic_status_update

FEATURE: Allow admins to schedule a topic to be published in the future.
This commit is contained in:
Guo Xiang Tan
2017-04-04 11:18:53 +08:00
committed by GitHub
23 changed files with 359 additions and 177 deletions

View File

@ -1265,7 +1265,7 @@ describe Topic do
expect(topic.reload.closed).to eq(false)
Timecop.freeze(3.hours.from_now) do
Timecop.travel(3.hours.from_now) do
TopicStatusUpdate.ensure_consistency!
expect(topic.reload.closed).to eq(true)
end