2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

FIX: Don't run job if topic timer has already been deleted.

This commit is contained in:
Guo Xiang Tan 2017-11-30 15:26:26 +08:00
parent 853b51b519
commit c128e421c4
2 changed files with 1 additions and 8 deletions

View file

@ -20,13 +20,6 @@ RSpec.describe Jobs::PublishTopicToCategory do
SiteSetting.queue_jobs = true
end
describe 'when topic_timer_id is invalid' do
it 'should raise the right error' do
expect { described_class.new.execute(topic_timer_id: -1) }
.to raise_error(Discourse::InvalidParameters)
end
end
describe 'when topic has been deleted' do
it 'should not publish the topic to the new category' do
freeze_time 1.hour.ago