mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 11:42:53 +08:00
correct specs
This commit is contained in:
parent
fb0b54f7f8
commit
dc17ae3b2f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user