FIX: Add skip_validations in one more place for narrative bot plugin

Followup to bbb814e58e
This commit is contained in:
David Taylor 2019-11-20 15:43:42 +00:00
parent bbb814e58e
commit 22e713d2b0
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,8 @@ module DiscourseNarrativeBot
else
PostCreator.create!(self.discobot_user, {
post_alert_options: defaut_post_alert_opts,
raw: raw
raw: raw,
skip_validations: true
}.merge(opts))
end
end

View File

@ -131,7 +131,6 @@ RSpec.describe DiscourseNarrativeBot::AdvancedUserNarrative do
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