Skip to content

Commit

Permalink
AO3-6863: update co-creator subject lines and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
boyer-victor committed Dec 25, 2024
1 parent 74655f9 commit 8bd0908
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions config/locales/mailers/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ en:
remove_series: If you've been added in error or don't want to be listed as a creator, you can %{edit_series_link} to remove yourself as creator.
intro_chapter: 'The user %{adding_user} has listed your pseud %{pseud} as a co-creator on the following chapter:'
intro_series: 'The user %{adding_user} has listed your pseud %{pseud} as a co-creator on the following series:'
subject: "[%{app_name}] Co-creator notification"
subject: "[%{app_name}] You've been added as a co-creator"
text:
creation: "%{title} (%{url}) by %{pseuds}"
remove_chapter: 'If you''ve been added in error or don''t want to be listed as a creator, you can edit the chapter to remove yourself as creator: %{url}'
Expand All @@ -286,7 +286,7 @@ en:
intro_chapter: 'The user %{archivist} has added your pseud %{pseud} as a co-creator on the following chapter:'
intro_series: 'The user %{archivist} has added your pseud %{pseud} as a co-creator on the following series:'
intro_work: 'The user %{archivist} has added your pseud %{pseud} as a co-creator on the following work:'
subject: "[%{app_name}] Archivist co-creator notification"
subject: "[%{app_name}] An archivist has added you as a co-creator"
text:
creation: "%{title} (%{url}) by %{pseuds}"
remove_chapter: 'If you''ve been added in error or don''t want to be listed as a creator, you can edit the chapter to remove yourself as creator: %{url}'
Expand All @@ -300,7 +300,7 @@ en:
intro_chapter: 'The user %{inviting_user} has invited your pseud %{pseud} to be listed as a co-creator on the following chapter:'
intro_series: 'The user %{inviting_user} has invited your pseud %{pseud} to be listed as a co-creator on the following series:'
intro_work: 'The user %{inviting_user} has invited your pseud %{pseud} to be listed as a co-creator on the following work:'
subject: "[%{app_name}] Co-creator request"
subject: "[%{app_name}] You've received a request to be a co-creator"
text:
creation: "%{title} (%{url}) by %{pseuds}"
instructions: 'You can accept or reject this request on your Co-Creator Requests page: %{url}'
Expand Down
6 changes: 3 additions & 3 deletions spec/mailers/user_mailer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
it_behaves_like "an email with a valid sender"

it "has the correct subject line" do
subject = "[#{ArchiveConfig.APP_SHORT_NAME}] Co-creator request"
subject = "[#{ArchiveConfig.APP_SHORT_NAME}] You've received a request to be a co-creator"
expect(email).to have_subject(subject)
end

Expand Down Expand Up @@ -73,7 +73,7 @@
it_behaves_like "an email with a valid sender"

it "has the correct subject line" do
subject = "[#{ArchiveConfig.APP_SHORT_NAME}] Co-creator notification"
subject = "[#{ArchiveConfig.APP_SHORT_NAME}] You've been added as a co-creator"
expect(email).to have_subject(subject)
end

Expand Down Expand Up @@ -121,7 +121,7 @@
it_behaves_like "an email with a valid sender"

it "has the correct subject line" do
subject = "[#{ArchiveConfig.APP_SHORT_NAME}] Archivist co-creator notification"
subject = "[#{ArchiveConfig.APP_SHORT_NAME}] An archivist has added you as a co-creator"
expect(email).to have_subject(subject)
end

Expand Down

0 comments on commit 8bd0908

Please sign in to comment.