Skip to content

Commit 0b3f2c3

Browse files
authored
Merge pull request #6655 from AlexWheeler/simpler-text-for-email-update-email
Simplifies text for email update
2 parents b4e3688 + 8278729 commit 0b3f2c3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
<p>Hello <%= @email %>!</p>
2-
31
<% if @resource.try(:unconfirmed_email?) %>
4-
<p>We're contacting you to notify you that your email is being changed to <%= @resource.unconfirmed_email %>.</p>
2+
<p>Your CASA account's email has been updated to <%= @resource.unconfirmed_email %>.</p>
53
<% else %>
6-
<p>We're contacting you to notify you that your email has been changed to <%= @resource.email %>.</p>
4+
<p>Your CASA account's email has been updated to <%= @resource.email %>.</p>
75
<% end %>

spec/system/all_casa_admins/all_casa_admin_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
fill_in "all_casa_admin_email", with: "newemail@example.com"
113113
click_on "Update Profile"
114114
expect(page).to have_text "successfully updated"
115-
expect(ActionMailer::Base.deliveries.last.body.encoded).to match(">We're contacting you to notify you that your email has been changed to newemail@example.com")
115+
expect(ActionMailer::Base.deliveries.last.body.encoded).to match(">Your CASA account's email has been updated to newemail@example.com")
116116

117117
# change password
118118
click_on "Change Password"

0 commit comments

Comments
 (0)