Skip to content

Commit bfecb44

Browse files
committed
Changes test to make sure subject keyword works
1 parent 6b4acff commit bfecb44

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec/prism_scanner_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,8 @@ def value
445445
class UserMailer < ApplicationMailer
446446
def welcome_email(user)
447447
@user = user
448-
mail(to: @user.email, subject: t('.subject'))
448+
# Make sure it does not expect `.subject` from this method
449+
mail(to: @user.email, subject: t('.subject_with_other_key'))
449450
end
450451
451452
def notification_email(user)
@@ -466,7 +467,7 @@ def other_email(user)
466467
%w[
467468
user_mailer.notification_email.subject
468469
user_mailer.other_email.subject
469-
user_mailer.welcome_email.subject
470+
user_mailer.welcome_email.subject_with_other_key
470471
]
471472
)
472473
end

0 commit comments

Comments
 (0)