mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
FEATURE: DiscourseEvent hook for server side markdown context.
This commit is contained in:
@ -78,6 +78,7 @@ describe PostCreator do
|
||||
DiscourseEvent.expects(:trigger).with(:after_validate_topic, anything, anything).once
|
||||
DiscourseEvent.expects(:trigger).with(:before_create_topic, anything, anything).once
|
||||
DiscourseEvent.expects(:trigger).with(:after_trigger_post_process, anything).once
|
||||
DiscourseEvent.expects(:trigger).with(:markdown_context, anything).at_least_once
|
||||
creator.create
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user