FIX: Email template for "Queued Posts Reminder" was not found
This commit is contained in:
parent
236243f38a
commit
1ac643d71c
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue