Skip to content

Commit

Permalink
account sign up emails now say "PlanningAlerts" as well as come from …
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed May 21, 2024
1 parent ace36a0 commit 812f3d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# Configure the e-mail address which will be shown in Devise::Mailer,
# note that it will be overwritten if you use your own mailer class
# with default "from" parameter.
config.mailer_sender = "contact@planningalerts.org.au"
config.mailer_sender = "PlanningAlerts <no-reply@planningalerts.org.au>"

# Configure the class responsible to send e-mails.
# config.mailer = 'Devise::Mailer'
Expand Down
3 changes: 3 additions & 0 deletions spec/features/user_sign_up_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
open_email("[email protected]")
expect(current_email).to have_subject("PlanningAlerts: Confirmation instructions")
expect(current_email.default_part_body.to_s).to include("Please confirm your account email by clicking the link below")
expect(current_email.from).to eq(["[email protected]"])
# TODO: This should be changed to "Planning Alerts"
expect(current_email[:from].display_names).to eq(["PlanningAlerts"])
end

describe "Check your email page in the new design" do
Expand Down

0 comments on commit 812f3d8

Please sign in to comment.