Fix a typo

This commit is contained in:
maatinito 2018-12-20 09:40:05 +01:00 committed by gregoirenovel
parent 9842142a9a
commit e37372d261

View file

@ -23,7 +23,7 @@ RSpec.describe NotificationMailer, type: :mailer 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,
# because ActionMailer does some magic to expose public instace methods as class methods.
# because ActionMailer does some magic to expose public instance methods as class methods.
# So, we use inheritance instead to make the private method public for testing purposes.
def send_notification(dossier, template)
super