Skip to content

Commit

Permalink
Make preview more realistic
Browse files Browse the repository at this point in the history
  • Loading branch information
francois-ferrandis committed Jun 8, 2022
1 parent 264c04e commit 923b6e8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions spec/mailers/previews/agents/reply_transfer_mailer_preview.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,21 @@ class Agents::ReplyTransferMailerPreview < ActionMailer::Preview
def notify_agent_of_user_reply
rdv = Rdv.last

# rubocop:disable RSpec/VariableName
# rubocop:disable RSpec/VariableDefinition
source_mail = Mail.new do
subject "Une nouvelle importante"
subject "Re: RDV confirmé le #{I18n.l(rdv.starts_at, format: :human)}"

text_part do
body "Bonjour,\nVoici une phrase après un saut de ligne."
end

attachments["signature.svg"] = { mime_type: "image/svg+xml", content: "" }
end
# rubocop:enable RSpec/VariableDefinition
# rubocop:enable RSpec/VariableName

body = <<~MARKDOWN
Bonjour,
Voici une phrase après un saut de ligne.
Voici une autre phrase après deux sauts de ligne (saut de paragraphe
Voici une autre phrase après deux sauts de ligne (saut de paragraphe)
MARKDOWN

Agents::ReplyTransferMailer.notify_agent_of_user_reply(
Expand Down

0 comments on commit 923b6e8

Please sign in to comment.