diff options
author | Jenkins <jenkins@jenkins.ninjawedding.org> | 2018-01-17 16:17:10 +0000 |
---|---|---|
committer | Jenkins <jenkins@jenkins.ninjawedding.org> | 2018-01-17 16:17:10 +0000 |
commit | aa2bf07281ba1e41c9e32a760684c15081524a7c (patch) | |
tree | a5ae679254948e9825676c87aca2ca4d164806c3 /spec/mailers/previews | |
parent | 60ff0869603c80fbaae407e492e0e7f60e2e40e6 (diff) | |
parent | fbe7756da6e817c3de633f624f5a28bc133e78c8 (diff) |
Merge remote-tracking branch 'tootsuite/master' into glitchsoc/master
Diffstat (limited to 'spec/mailers/previews')
-rw-r--r-- | spec/mailers/previews/notification_mailer_preview.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/mailers/previews/notification_mailer_preview.rb b/spec/mailers/previews/notification_mailer_preview.rb index 99495d862..e31445c36 100644 --- a/spec/mailers/previews/notification_mailer_preview.rb +++ b/spec/mailers/previews/notification_mailer_preview.rb @@ -13,6 +13,12 @@ class NotificationMailerPreview < ActionMailer::Preview NotificationMailer.follow(f.target_account, Notification.find_by(activity: f)) end + # Preview this email at http://localhost:3000/rails/mailers/notification_mailer/follow_request + def follow_request + f = Follow.last + NotificationMailer.follow_request(f.target_account, Notification.find_by(activity: f)) + end + # Preview this email at http://localhost:3000/rails/mailers/notification_mailer/favourite def favourite f = Favourite.last |