Tes: 申請していないフレンドサーバーについてのテストを追加

This commit is contained in:
KMY 2023-10-09 15:40:52 +09:00
parent 63a067e2f2
commit 4549422a65

View file

@ -147,6 +147,18 @@ describe StatusReachFinder do
end
end
context 'with idle' do
before do
Fabricate(:friend_domain, domain: 'foo.bar', active_state: :idle, passive_state: :accepted)
bob.follow!(alice)
end
it 'send status' do
expect(subject.inboxes).to include 'https://foo.bar/inbox'
expect(subject.inboxes_for_friend).to_not include 'https://foo.bar/inbox'
end
end
context 'when unavailable' do
before do
Fabricate(:friend_domain, domain: 'foo.bar', active_state: :accepted, available: false)