mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 21:21:13 +08:00
FIX: Allow advanced tutorial when title emojis are disabled
We already skip validations for other uses of PostCreator in the narrative bot, so this commit adds it in the `reply_to` action as well
This commit is contained in:
@ -125,6 +125,15 @@ RSpec.describe DiscourseNarrativeBot::AdvancedUserNarrative do
|
||||
expect(new_post.raw).to eq(expected_raw.chomp)
|
||||
expect(new_post.topic.id).to_not eq(topic.id)
|
||||
end
|
||||
|
||||
it 'should not explode if title emojis are disabled' do
|
||||
SiteSetting.max_emojis_in_title = 0
|
||||
narrative.reset_bot(user, other_post)
|
||||
|
||||
expect(Topic.last.title).to eq(I18n.t('discourse_narrative_bot.advanced_user_narrative.title'))
|
||||
expect(new_post.topic.id).to_not eq(topic.id)
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user