mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Allow sending test e-mails to any email address when disable_email is set to non-staff (#6792)
This commit is contained in:
@@ -120,7 +120,7 @@ describe Admin::EmailController do
|
||||
expect(incoming['sent_test_email_message']).to eq(I18n.t("admin.email.sent_test_disabled"))
|
||||
end
|
||||
|
||||
it 'sends mail to staff only when setting is "non-staff"' do
|
||||
it 'sends mail to everyone when setting is "non-staff"' do
|
||||
SiteSetting.disable_emails = 'non-staff'
|
||||
|
||||
post "/admin/email/test.json", params: { email_address: admin.email }
|
||||
@@ -129,7 +129,7 @@ describe Admin::EmailController do
|
||||
|
||||
post "/admin/email/test.json", params: { email_address: eviltrout.email }
|
||||
incoming = JSON.parse(response.body)
|
||||
expect(incoming['sent_test_email_message']).to eq(I18n.t("admin.email.sent_test_disabled_for_non_staff"))
|
||||
expect(incoming['sent_test_email_message']).to eq(I18n.t("admin.email.sent_test"))
|
||||
end
|
||||
|
||||
it 'sends mail to everyone when setting is "no"' do
|
||||
|
||||
Reference in New Issue
Block a user