mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-04 05:54:27 +00:00
Update .following_map examples with show-reblogs information.
This commit is contained in:
parent
d083f7741a
commit
e45cb0837b
|
@ -12,9 +12,16 @@ describe AccountInteractions do
|
||||||
subject { Account.following_map(target_account_ids, account_id) }
|
subject { Account.following_map(target_account_ids, account_id) }
|
||||||
|
|
||||||
context 'account with Follow' do
|
context 'account with Follow' do
|
||||||
it 'returns { target_account_id => true }' do
|
it 'returns { target_account_id => { reblogs: true } }' do
|
||||||
Fabricate(:follow, account: account, target_account: target_account)
|
Fabricate(:follow, account: account, target_account: target_account, show_reblogs: true)
|
||||||
is_expected.to eq(target_account_id => true)
|
is_expected.to eq(target_account_id => { reblogs: true })
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
context 'account with Follow but with reblogs disabled' do
|
||||||
|
it 'returns { target_account_id => { reblogs: false } }' do
|
||||||
|
Fabricate(:follow, account: account, target_account: target_account, show_reblogs: false)
|
||||||
|
is_expected.to eq(target_account_id => { reblogs: false })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue