From 4549422a650f1a357f07b4b3cfaddfdb61b83e81 Mon Sep 17 00:00:00 2001 From: KMY Date: Mon, 9 Oct 2023 15:40:52 +0900 Subject: [PATCH] =?UTF-8?q?Tes:=20=E7=94=B3=E8=AB=8B=E3=81=97=E3=81=A6?= =?UTF-8?q?=E3=81=84=E3=81=AA=E3=81=84=E3=83=95=E3=83=AC=E3=83=B3=E3=83=89?= =?UTF-8?q?=E3=82=B5=E3=83=BC=E3=83=90=E3=83=BC=E3=81=AB=E3=81=A4=E3=81=84?= =?UTF-8?q?=E3=81=A6=E3=81=AE=E3=83=86=E3=82=B9=E3=83=88=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spec/lib/status_reach_finder_spec.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/spec/lib/status_reach_finder_spec.rb b/spec/lib/status_reach_finder_spec.rb index 44b5bb39e86a52..8aefc85210d928 100644 --- a/spec/lib/status_reach_finder_spec.rb +++ b/spec/lib/status_reach_finder_spec.rb @@ -147,6 +147,18 @@ 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)