Skip to content

Failing specs for due date reminder emails #294

@tmfrnz

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions