ShinyCMS-ruby icon indicating copy to clipboard operation
ShinyCMS-ruby copied to clipboard

Mailers need separate tests

Open denny opened this issue 4 years ago • 2 comments

Currently most of the mailer code is only 'tested' indirectly, when the request specs touch a controller action that touches a model method that touches the mailer.

denny avatar Oct 06 '20 20:10 denny

If you are a less experienced developer who is looking at this issue and thinking you'd like to try to take it on but you're not entirely confident, I would be happy to help you - whether that's help getting set up, more explanation of what needs doing, pairing on the code task itself, or anything else I can do to help.

In my day job I'm a lead developer who often mentors less experienced developers, and I'd love to use some of that experience to help people take their first steps into contributing to open source projects.

denny avatar Oct 10 '20 17:10 denny

I just added basic mailer tests for ShinyForms[1] while I was fixing another issue in that plugin. DiscussionMailer and EmailRecipientMailer in the main app already have tests.

That leaves the following mailers still in need of separate tests:

  • UserMailer
  • ShinyNewsletters::NewsletterMailer

[1] https://github.com/denny/ShinyCMS-ruby/blob/main/plugins/ShinyForms/spec/mailers/shiny_forms/form_mailer_spec.rb

denny avatar Nov 03 '20 23:11 denny