Replace data with content in export email copy (#1572)
This commit is contained in:
parent
b1f18f5bbc
commit
5ee725410b
4 changed files with 4 additions and 4 deletions
|
|
@ -103,7 +103,7 @@ class NotifyMailer < ApplicationMailer
|
|||
@user = user
|
||||
export_filename = "devto-export-#{Date.current.iso8601}.zip"
|
||||
attachments[export_filename] = attachment
|
||||
mail(to: @user.email, subject: "The export of your data is ready")
|
||||
mail(to: @user.email, subject: "The export of your content is ready")
|
||||
end
|
||||
|
||||
def tag_moderator_confirmation_email(user, tag_name)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<h3 style="font-weight:300">Your data has been exported.</h3>
|
||||
<h3 style="font-weight:300">Your content has been exported.</h3>
|
||||
<p>
|
||||
Please check the attached file.
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
Your data has been exported.
|
||||
Your content has been exported.
|
||||
|
||||
Please check the attached file.
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ RSpec.describe NotifyMailer, type: :mailer do
|
|||
describe "#export_email" do
|
||||
it "renders proper subject" do
|
||||
export_email = described_class.export_email(user, "attachment")
|
||||
expect(export_email.subject).to include("export of your data is ready")
|
||||
expect(export_email.subject).to include("export of your content is ready")
|
||||
end
|
||||
|
||||
it "renders proper receiver" do
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue