0
0
Fork 0

Add coverage for AccountPin model (#33231)

This commit is contained in:
Matt Jankowski 2024-12-10 08:02:52 -05:00 committed by GitHub
parent 58c5068bda
commit 7d52b24569
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 34 additions and 1 deletions

View file

@ -23,6 +23,6 @@ class AccountPin < ApplicationRecord
private
def validate_follow_relationship
errors.add(:base, I18n.t('accounts.pin_errors.following')) unless account.following?(target_account)
errors.add(:base, I18n.t('accounts.pin_errors.following')) unless account&.following?(target_account)
end
end