mailer: fix typo in spec

This commit is contained in:
Pierre de La Morinerie 2018-09-05 15:15:37 +02:00
parent d7dd027cb8
commit 2a5a8cf621

View file

@ -22,7 +22,7 @@ RSpec.describe NotificationMailer, type: :mailer do
klass = Class.new(described_class) do
# Were testing the (private) method `NotificationMailer#send_notification`.
#
# The standard trick to test a private method would be to `send(:send_notification`, but doesnt work here,
# The standard trick to test a private method would be to `send(:send_notification)`, but doesnt work here,
# because ActionMailer does some magic to expose public instace methods as class methods.
# So, we use inheritance instead to make the private method public for testing purposes.
def send_notification(dossier, template)