Match against string value, no need to create regexps

This commit is contained in:
Carlos Antonio da Silva 2013-01-28 23:59:15 -02:00
parent 0285565322
commit 72be1f1289
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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