FIX: Actually error when topic timer time is in the past (#11434)

This commit is contained in:
Mark VanLandingham
2020-12-08 11:13:45 -06:00
committed by GitHub
parent b824af02d4
commit 9f786306bd
4 changed files with 21 additions and 6 deletions

View File

@ -954,7 +954,7 @@ describe 'topics' do
category_id: { type: :string, nullable: true },
}
let(:request_body) { { time: '2020-07-11+18:00-06:00', status_type: 'close' } }
let(:request_body) { { time: Time.current + 1.day, status_type: 'close' } }
let!(:topic_post) { Fabricate(:post) }
let(:id) { topic_post.topic.id }