FIX: Email template for "Queued Posts Reminder" was not found

This commit is contained in:
Gerhard Schlager 2018-07-24 17:26:11 +02:00
parent 236243f38a
commit 1ac643d71c
2 changed files with 6 additions and 1 deletions

View File

@ -3,7 +3,7 @@ class Admin::EmailTemplatesController < Admin::AdminController
def self.email_keys
@email_keys ||= ["invite_forum_mailer", "invite_mailer", "invite_password_instructions",
"custom_invite_mailer", "custom_invite_forum_mailer",
"new_version_mailer", "new_version_mailer_with_notes", "queued_posts_reminder",
"new_version_mailer", "new_version_mailer_with_notes", "system_messages.queued_posts_reminder",
"system_messages.backup_failed", "system_messages.backup_succeeded",
"system_messages.silenced_by_staff", "system_messages.bulk_invite_failed",
"system_messages.bulk_invite_succeeded", "system_messages.csv_export_failed",

View File

@ -303,4 +303,9 @@ RSpec.describe Admin::EmailTemplatesController do
end
it "uses only existing email templates" do
Admin::EmailTemplatesController.email_keys.each do |key|
expect(I18n.t(key)).to_not include('translation missing')
end
end
end