mailer: fix typo in spec
This commit is contained in:
parent
d7dd027cb8
commit
2a5a8cf621
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ RSpec.describe NotificationMailer, type: :mailer do
|
|||
klass = Class.new(described_class) do
|
||||
# We’re testing the (private) method `NotificationMailer#send_notification`.
|
||||
#
|
||||
# The standard trick to test a private method would be to `send(:send_notification`, but doesn’t work here,
|
||||
# The standard trick to test a private method would be to `send(:send_notification)`, but doesn’t 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)
|
||||
|
|
Loading…
Reference in a new issue