Replace data with content in export email copy (#1572)

This commit is contained in:
rhymes 2019-01-16 23:10:06 +01:00 committed by Ben Halpern
parent b1f18f5bbc
commit 5ee725410b
4 changed files with 4 additions and 4 deletions

View file

@ -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)

View file

@ -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>

View file

@ -1,3 +1,3 @@
Your data has been exported.
Your content has been exported.
Please check the attached file.

View 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