Class: Thredded::PrivateTopicMailerPreview

Inherits:
BaseMailerPreview show all
Defined in:
app/mailer_previews/thredded/private_topic_mailer_preview.rb

Overview

Previews for the PrivateTopicMailer

Instance Method Summary collapse

Methods inherited from BaseMailerPreview

preview_classes

Instance Method Details

#message_notificationObject



5
6
7
8
9
10
11
12
13
14
# File 'app/mailer_previews/thredded/private_topic_mailer_preview.rb', line 5

def message_notification
  PrivateTopicMailer.message_notification(
    mock_private_topic.tap do |private_topic|
      private_topic.posts = [
        mock_private_post(content: mock_content(mention_users: ['glebm']), postable: private_topic)
      ]
    end,
    %w([email protected] [email protected])
  )
end