Commit 6bd750a6

mo <mokha@cisco.com>
2017-04-18 03:55:42
escape name in case it has a character that needs to be escaped.
1 parent 6824387
Changed files (1)
spec/mailers/password_reset_mailer_spec.rb
@@ -18,7 +18,7 @@ describe PasswordResetMailer do
     end
 
     it "includes their name" do
-      expect(mail.body.encoded).to match(user.name)
+      expect(mail.body.encoded).to match(CGI.escapeHTML(user.name))
     end
   end
 end