FIX: Missing topic edited web hook when publishing a topic.

This commit is contained in:
Guo Xiang Tan
2019-04-16 14:09:51 +08:00
parent d6e45864ce
commit 8cb1890245
4 changed files with 28 additions and 1 deletions

View File

@@ -34,10 +34,12 @@ describe TopicPublisher do
expect(topic.created_at).to eq(published_at)
expect(topic.updated_at).to eq(published_at)
expect(topic.shared_draft).to be_blank
expect(UserHistory.where(
acting_user_id: moderator.id,
action: UserHistory.actions[:topic_published]
)).to be_present
op.reload
# Should delete any edits on the OP