From dc17ae3b2f96bb5e191470836291d6f08f7dc859 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 27 Aug 2018 14:50:56 +1000 Subject: [PATCH] correct specs --- spec/components/topic_creator_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/components/topic_creator_spec.rb b/spec/components/topic_creator_spec.rb index aa9a47685af..22d30bee759 100644 --- a/spec/components/topic_creator_spec.rb +++ b/spec/components/topic_creator_spec.rb @@ -146,6 +146,9 @@ describe TopicCreator do end it "should be possible for a trusted user to send private messages via email" do + SiteSetting.manual_polling_enabled = true + SiteSetting.reply_by_email_address = "sam+%{reply_key}@sam.com" + SiteSetting.reply_by_email_enabled = true SiteSetting.enable_personal_email_messages = true SiteSetting.min_trust_to_send_email_messages = TrustLevel[1] @@ -155,6 +158,9 @@ describe TopicCreator do context 'failure cases' do it "should be rollback the changes when email is invalid" do + SiteSetting.manual_polling_enabled = true + SiteSetting.reply_by_email_address = "sam+%{reply_key}@sam.com" + SiteSetting.reply_by_email_enabled = true SiteSetting.enable_personal_email_messages = true SiteSetting.min_trust_to_send_email_messages = TrustLevel[1] attrs = pm_to_email_valid_attrs.dup