diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-12-15 18:50:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-15 18:50:11 +0100 |
commit | 70415714f14e067aba518a105c96475db31fa124 (patch) | |
tree | 6a5e3bb7bec28809235025af12994b70c1082f5f /spec/models | |
parent | 7a3c6bb88833a48253eb4795f4ee1127c6b5b5b0 (diff) |
Add follow request banner on account header (#20785)
* Add requested_by to relationship maps * Display whether an account has requested to follow you on their profile
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/account_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/account_spec.rb b/spec/models/account_spec.rb index c9d782cee..6cd769dc8 100644 --- a/spec/models/account_spec.rb +++ b/spec/models/account_spec.rb @@ -658,6 +658,12 @@ RSpec.describe Account, type: :model do end end + describe '.requested_by_map' do + it 'returns an hash' do + expect(Account.requested_by_map([], 1)).to be_a Hash + end + end + describe 'MENTION_RE' do subject { Account::MENTION_RE } |