File tree Expand file tree Collapse file tree 10 files changed +20
-18
lines changed
Expand file tree Collapse file tree 10 files changed +20
-18
lines changed Original file line number Diff line number Diff line change 1- < p > Hello! <%= @email %> !</ p >
2-
3- < p > You can confirm your account email through the link below:</ p >
4-
1+ < p > Click here to confirm your email.</ p >
52< p > <%= link_to 'Confirm my account' , confirmation_url ( @resource , confirmation_token : @token ) %> </ p >
3+ < p > If you weren't expecting this email, please disregard</ p >
Original file line number Diff line number Diff line change 7474 expect ( ActionMailer ::Base . deliveries . count ) . to eq ( 1 )
7575 expect ( ActionMailer ::Base . deliveries . first ) . to be_a ( Mail ::Message )
7676 expect ( ActionMailer ::Base . deliveries . first . body . encoded )
77- . to match ( "You can confirm your account email through the link below: " )
77+ . to match ( "Click here to confirm your email" )
7878 end
7979
8080 it { is_expected . to redirect_to edit_all_casa_admins_casa_org_casa_admin_path ( casa_org , casa_admin ) }
Original file line number Diff line number Diff line change 106106 expect ( ActionMailer ::Base . deliveries . count ) . to eq ( 1 )
107107 expect ( ActionMailer ::Base . deliveries . first ) . to be_a ( Mail ::Message )
108108 expect ( ActionMailer ::Base . deliveries . first . body . encoded )
109- . to match ( "You can confirm your account email through the link below: " )
109+ . to match ( "Click here to confirm your email" )
110110 end
111111
112112 it "also respond as json" , :aggregate_failures do
Original file line number Diff line number Diff line change 160160 expect ( ActionMailer ::Base . deliveries . count ) . to eq ( 1 )
161161 expect ( ActionMailer ::Base . deliveries . first ) . to be_a ( Mail ::Message )
162162 expect ( ActionMailer ::Base . deliveries . first . body . encoded )
163- . to match ( "You can confirm your account email through the link below: " )
163+ . to match ( "Click here to confirm your email" )
164164 end
165165
166166 it "can set the supervisor to be inactive" do
206206 expect ( ActionMailer ::Base . deliveries . count ) . to eq ( 1 )
207207 expect ( ActionMailer ::Base . deliveries . first ) . to be_a ( Mail ::Message )
208208 expect ( ActionMailer ::Base . deliveries . first . body . encoded )
209- . to match ( "You can confirm your account email through the link below: " )
209+ . to match ( "Click here to confirm your email" )
210210 end
211211
212212 it "cannot change its own type" do
Original file line number Diff line number Diff line change 256256
257257 expect ( ActionMailer ::Base . deliveries . count ) . to eq ( 1 )
258258 expect ( ActionMailer ::Base . deliveries . last . body . encoded )
259- . to match ( "You can confirm your account email through the link below: " )
259+ . to match ( "Click here to confirm your email" )
260260 end
261261 end
262262
304304
305305 expect ( ActionMailer ::Base . deliveries . count ) . to eq ( 1 )
306306 expect ( ActionMailer ::Base . deliveries . last . body . encoded )
307- . to match ( "You can confirm your account email through the link below: " )
307+ . to match ( "Click here to confirm your email" )
308308 end
309309
310310 it "bypasses sign in if the current user is the true user" do
363363
364364 expect ( ActionMailer ::Base . deliveries . count ) . to eq ( 1 )
365365 expect ( ActionMailer ::Base . deliveries . last . body . encoded )
366- . to match ( "You can confirm your account email through the link below: " )
366+ . to match ( "Click here to confirm your email" )
367367 end
368368
369369 it "bypasses sign in if the current user is the true user" do
Original file line number Diff line number Diff line change 250250 expect ( ActionMailer ::Base . deliveries . count ) . to eq ( 1 )
251251 expect ( ActionMailer ::Base . deliveries . first ) . to be_a ( Mail ::Message )
252252 expect ( ActionMailer ::Base . deliveries . first . body . encoded )
253- . to match ( "You can confirm your account email through the link below: " )
253+ . to match ( "Click here to confirm your email" )
254254 end
255255 end
256256
Original file line number Diff line number Diff line change 4242 expect ( ActionMailer ::Base . deliveries . count ) . to eq ( 1 )
4343 expect ( ActionMailer ::Base . deliveries . first ) . to be_a ( Mail ::Message )
4444 expect ( ActionMailer ::Base . deliveries . first . body . encoded )
45- . to match ( "You can confirm your account email through the link below: " )
45+ . to match ( "Click here to confirm your email" )
4646
4747 expect ( page ) . to have_text "Admin was successfully updated. Confirmation Email Sent."
4848 expect ( page ) . to have_field ( "Email" , with : @old_email )
Original file line number Diff line number Diff line change 182182 expect ( ActionMailer ::Base . deliveries . count ) . to eq ( 1 )
183183 expect ( ActionMailer ::Base . deliveries . first ) . to be_a ( Mail ::Message )
184184 expect ( ActionMailer ::Base . deliveries . first . body . encoded )
185- . to match ( "You can confirm your account email through the link below: " )
185+ . to match ( "Click here to confirm your email" )
186186
187187 expect ( page ) . to have_text "Supervisor was successfully updated. Confirmation Email Sent."
188188 expect ( page ) . to have_field ( "Email" , with : @old_email )
Original file line number Diff line number Diff line change 112112 fill_in "New Email" , with : "new_volunteer@example.com"
113113 click_on "Update Email"
114114
115+ expect ( page ) . to have_content "Click the link in your new email to finalize the email transfer"
116+
115117 expect ( ActionMailer ::Base . deliveries . count ) . to eq ( 1 )
116118 expect ( ActionMailer ::Base . deliveries . first ) . to be_a ( Mail ::Message )
117119 expect ( ActionMailer ::Base . deliveries . first . body . encoded )
118- . to have_text ( "You can confirm your account email through the link below: " )
120+ . to have_text ( "Click here to confirm your email" )
119121 end
120122
121123 it "displays email errors messages when user is unable to set a email with incorrect current password" do
264266 fill_in "New Email" , with : "new_supervisor@example.com"
265267 click_on "Update Email"
266268
269+ expect ( page ) . to have_content "Click the link in your new email to finalize the email transfer"
270+
267271 expect ( ActionMailer ::Base . deliveries . count ) . to eq ( 1 )
268272 expect ( ActionMailer ::Base . deliveries . first ) . to be_a ( Mail ::Message )
269273 expect ( ActionMailer ::Base . deliveries . first . body . encoded )
270- . to match ( "You can confirm your account email through the link below: " )
274+ . to match ( "Click here to confirm your email" )
271275 end
272276
273277 it "displays email errors messages when user is unable to set a email with incorrect current password" do
428432 expect ( ActionMailer ::Base . deliveries . count ) . to eq ( 1 )
429433 expect ( ActionMailer ::Base . deliveries . first ) . to be_a ( Mail ::Message )
430434 expect ( ActionMailer ::Base . deliveries . first . body . encoded )
431- . to match ( "You can confirm your account email through the link below: " )
435+ . to match ( "Click here to confirm your email" )
432436 end
433437
434438 it "displays email errors messages when user is unable to set a email with incorrect current password" do
Original file line number Diff line number Diff line change 145145 expect ( ActionMailer ::Base . deliveries . count ) . to eq ( 1 )
146146 expect ( ActionMailer ::Base . deliveries . first ) . to be_a ( Mail ::Message )
147147 expect ( ActionMailer ::Base . deliveries . first . body . encoded )
148- . to match ( "You can confirm your account email through the link below: " )
148+ . to match ( "Click here to confirm your email" )
149149
150150 expect ( page ) . to have_text "Volunteer was successfully updated. Confirmation Email Sent."
151151 expect ( page ) . to have_field ( "Email" , with : old_email )
You can’t perform that action at this time.
0 commit comments