Make test less vulnerable to changes.
This commit is contained in:
parent
b0e4555a86
commit
92036616db
|
@ -405,8 +405,8 @@ describe UserNotifications do
|
|||
|
||||
# WARNING: you reached the limit of 100 email notifications per day. Further emails will be suppressed.
|
||||
# Consider watching less topics or disabling mailing list mode.
|
||||
expect(mail.html_part.to_s).to match("To protect your inbox")
|
||||
expect(mail.body.to_s).to match("To protect your inbox")
|
||||
expect(mail.html_part.to_s).to match(I18n.t("user_notifications.reached_limit", count: 2))
|
||||
expect(mail.body.to_s).to match(I18n.t("user_notifications.reached_limit", count: 2))
|
||||
end
|
||||
|
||||
def expects_build_with(condition)
|
||||
|
|
Loading…
Reference in New Issue