mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Match against string value, no need to create regexps
This commit is contained in:
parent
0285565322
commit
72be1f1289
3 changed files with 3 additions and 3 deletions
|
@ -70,7 +70,7 @@ class ConfirmationInstructionsTest < ActionMailer::TestCase
|
|||
end
|
||||
|
||||
test 'body should have user info' do
|
||||
assert_match /#{user.email}/, mail.body.encoded
|
||||
assert_match user.email, mail.body.encoded
|
||||
end
|
||||
|
||||
test 'body should have link to confirm the account' do
|
||||
|
|
|
@ -66,7 +66,7 @@ class ResetPasswordInstructionsTest < ActionMailer::TestCase
|
|||
end
|
||||
|
||||
test 'body should have user info' do
|
||||
assert_match(/#{user.email}/, mail.body.encoded)
|
||||
assert_match user.email, mail.body.encoded
|
||||
end
|
||||
|
||||
test 'body should have link to confirm the account' do
|
||||
|
|
|
@ -66,7 +66,7 @@ class UnlockInstructionsTest < ActionMailer::TestCase
|
|||
end
|
||||
|
||||
test 'body should have user info' do
|
||||
assert_match(/#{user.email}/, mail.body.encoded)
|
||||
assert_match user.email, mail.body.encoded
|
||||
end
|
||||
|
||||
test 'body should have link to unlock the account' do
|
||||
|
|
Loading…
Add table
Reference in a new issue