impactoss / impactoss-server

IMPACT OSS - server-side application & API
https://demo.impactoss.org
MIT License
3 stars 8 forks source link

Failing specs for due date reminder emails #294

Open tmfrnz opened 6 years ago

tmfrnz commented 6 years ago
1) DueDateMailer overdue mentions the indicator title
Failure/Error: expect(mail.body.encoded).to match(due_date.indicator.title)

  expected "\r\n----==_mimepart_5aa991e93afa9_16fe114f0cc33a\r\nContent-Type: text/plain;\r\n charset=UTF-8\r\nC...01-06\r\n</p>\r\n\r\n  </body>\r\n</html>\r\n\r\n----==_mimepart_5aa991e93afa9_16fe114f0cc33a--\r\n" to match "Chuck Norris can recite . Backwards."
  Diff:
  @@ -1,2 +1,45 @@
  -Chuck Norris can recite . Backwards.
  +
  +----==_mimepart_5aa991e93afa9_16fe114f0cc33a
  +Content-Type: text/plain;
  + charset=UTF-8
  +Content-Transfer-Encoding: quoted-printable
  +
  +Sadata Progress Report Overdue!
  +
  +Hi Angus Murazik,
  +You had a progress report due for Chuck Norris can recite =CF=80. Backwar=
  +ds. on 2017-01-06
  +
  +
  +----==_mimepart_5aa991e93afa9_16fe114f0cc33a
  +Content-Type: text/html;
  + charset=UTF-8
  +Content-Transfer-Encoding: quoted-printable
  +
  +<!DOCTYPE html>
  +<html>
  +  <head>
  +    <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=
  +-8" />
  +    <style>
  +      /* Email styles need to be inline */
  +    </style>
  +  </head>
  +
  +  <body>
  +    <h1>Sadata Progress Report Overdue!</h1>
  +
  +<p>
  +  Hi Angus Murazik,
  +</p>
  +
  +<p>
  +  You had a progress report overdue for Chuck Norris can recite =CF=80. B=
  +ackwards. on 2017-01-06
  +</p>
  +
  +  </body>
  +</html>
  +
  +----==_mimepart_5aa991e93afa9_16fe114f0cc33a--
tmfrnz commented 6 years ago
2) DueDateMailer category due mentions the indicator title
Failure/Error: expect(mail.body.encoded).to match(due_date.indicator.title)

  expected "\r\n----==_mimepart_5aa991e955421_16fe114f0cc361a\r\nContent-Type: text/plain;\r\n charset=UTF-8\r\n...na=C3=AB\r\n</p>\r\n  </body>\r\n</html>\r\n\r\n----==_mimepart_5aa991e955421_16fe114f0cc361a--\r\n" to match "Chuck Norris can compile syntax errors."
  Diff:
  @@ -1,2 +1,44 @@
  -Chuck Norris can compile syntax errors.
  +
  +----==_mimepart_5aa991e955421_16fe114f0cc361a
  +Content-Type: text/plain;
  + charset=UTF-8
  +Content-Transfer-Encoding: quoted-printable
  +
  +Sadata Progress Report Due
  +
  +Hi Dr. Rosie Durgan,
  +There is a a progress report due for Chuck Norris can compile syntax erro=
  +rs. on 2017-01-06 for your category Dana=C3=AB
  +
  +
  +----==_mimepart_5aa991e955421_16fe114f0cc361a
  +Content-Type: text/html;
  + charset=UTF-8
  +Content-Transfer-Encoding: quoted-printable
  +
  +<!DOCTYPE html>
  +<html>
  +  <head>
  +    <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=
  +-8" />
  +    <style>
  +      /* Email styles need to be inline */
  +    </style>
  +  </head>
  +
  +  <body>
  +    <h1>Sadata Progress Report Due</h1>
  +
  +<p>
  +  Hi Dr. Rosie Durgan,
  +</p>
  +
  +<p>
  +  There is a a progress report due for Chuck Norris can compile syntax er=
  +rors. on 2017-01-06 for your category Dana=C3=AB
  +</p>
  +  </body>
  +</html>
  +
  +----==_mimepart_5aa991e955421_16fe114f0cc361a--