mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FIX: Delete topic timer after completion.
This commit is contained in:
@ -79,9 +79,11 @@ describe Topic do
|
||||
context 'topic is closed manually' do
|
||||
it 'should remove the schedule to auto-close the topic' do
|
||||
Timecop.freeze do
|
||||
topic_timer_id = staff_topic.topic_timer.id
|
||||
|
||||
staff_topic.update_status('closed', true, admin)
|
||||
|
||||
expect(staff_topic.topic_status_update.reload.deleted_at)
|
||||
expect(TopicTimer.with_deleted.find(topic_timer_id).deleted_at)
|
||||
.to be_within(1.second).of(Time.zone.now)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user