diff --git a/test/mailers/confirmation_instructions_test.rb b/test/mailers/confirmation_instructions_test.rb index 213923d9..b44352b4 100644 --- a/test/mailers/confirmation_instructions_test.rb +++ b/test/mailers/confirmation_instructions_test.rb @@ -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 diff --git a/test/mailers/reset_password_instructions_test.rb b/test/mailers/reset_password_instructions_test.rb index 887021b4..96f72fa6 100644 --- a/test/mailers/reset_password_instructions_test.rb +++ b/test/mailers/reset_password_instructions_test.rb @@ -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 diff --git a/test/mailers/unlock_instructions_test.rb b/test/mailers/unlock_instructions_test.rb index a0cf2abd..4e1e532e 100644 --- a/test/mailers/unlock_instructions_test.rb +++ b/test/mailers/unlock_instructions_test.rb @@ -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