FIX: broken specs after new link alerting code

This commit is contained in:
Sam
2014-03-18 15:22:39 +11:00
parent 9fd7b0b814
commit 5c26b3dad1
10 changed files with 129 additions and 91 deletions

View File

@ -69,12 +69,15 @@ class PostCreator
ensure_in_allowed_users if guardian.is_staff?
@post.advance_draft_sequence
@post.save_reply_relationships
PostAlerter.new.after_save_post(@post)
end
handle_spam
track_latest_on_category
enqueue_jobs
if @post
PostAlerter.post_created(@post)
handle_spam
track_latest_on_category
enqueue_jobs
end
@post
end