Browse Source

Fixed preview of email notifications

notifications-fixes
Colin Darie 2 years ago
parent
commit
ce143201b5
No known key found for this signature in database GPG Key ID: 4FB865FDBCA4BCC4
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      test/mailers/previews/notifications_mailer_preview.rb

+ 6
- 2
test/mailers/previews/notifications_mailer_preview.rb View File

@ -6,13 +6,17 @@ class NotificationsMailerPreview < ActionMailer::Preview
# Preview this email at http://localhost:3000/rails/mailers/notifications_mailer/domain_expires_soon
def domain_expires_soon
check = Check.domain.first
NotificationsMailer.with(notification: check.notifications.first).domain_expires_soon
NotificationsMailer
.with(check_notification: check.check_notifications.first)
.domain_expires_soon
end
# Preview this email at http://localhost:3000/rails/mailers/notifications_mailer/ssl_expires_soon
def ssl_expires_soon
check = Check.ssl.first
NotificationsMailer.with(notification: check.notifications.first).ssl_expires_soon
NotificationsMailer
.with(check_notification: check.check_notifications.first)
.ssl_expires_soon
end
# Preview this email at http://localhost:3000/rails/mailers/notifications_mailer/recurrent_failures


Loading…
Cancel
Save