Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Failing specs for due date reminder emails #294

Open
tmfrnz opened this issue Mar 14, 2018 · 1 comment
Open

Failing specs for due date reminder emails #294

tmfrnz opened this issue Mar 14, 2018 · 1 comment

Comments

@tmfrnz
Copy link
Member

tmfrnz commented Mar 14, 2018

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
Copy link
Member Author

tmfrnz commented Mar 14, 2018

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant