do not bump posts when rebaking

This commit is contained in:
Régis Hanol
2013-11-22 01:52:26 +01:00
parent bcfbacec16
commit f65cde3cda
7 changed files with 23 additions and 26 deletions

View File

@ -308,7 +308,7 @@ describe CookedPostProcessor do
Jobs.expects(:cancel_scheduled_job).with(:pull_hotlinked_images, post_id: post.id).once
delay = SiteSetting.ninja_edit_window + 1
Jobs.expects(:enqueue_in).with(delay.seconds, :pull_hotlinked_images, post_id: post.id).once
Jobs.expects(:enqueue_in).with(delay.seconds, :pull_hotlinked_images, post_id: post.id, bypass_bump: false).once
cpp.pull_hotlinked_images
end