diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-10-25 21:31:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-25 21:31:10 +0200 |
commit | e0f39626973fd9f5cce2d4cd3b166fb47e9c9059 (patch) | |
tree | e02d1e9a448960a68652f75baebb5921211ee7a1 /spec/models | |
parent | c647fa99cab9b9db81d36223cf2c2c27e065b648 (diff) | |
parent | a30ac454b2ceb381c50f5b9323e25817d784a476 (diff) |
Merge pull request #1625 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/concerns/account_interactions_spec.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/models/concerns/account_interactions_spec.rb b/spec/models/concerns/account_interactions_spec.rb index fc653671e..656dd66cc 100644 --- a/spec/models/concerns/account_interactions_spec.rb +++ b/spec/models/concerns/account_interactions_spec.rb @@ -367,6 +367,23 @@ describe AccountInteractions do end end + describe '#followed_by?' do + subject { account.followed_by?(target_account) } + + context 'followed by target_account' do + it 'returns true' do + account.passive_relationships.create(account: target_account) + is_expected.to be true + end + end + + context 'not followed by target_account' do + it 'returns false' do + is_expected.to be false + end + end + end + describe '#blocking?' do subject { account.blocking?(target_account) } |