Skip to content

Commit

Permalink
Tes: 申請していないフレンドサーバーについてのテストを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Oct 9, 2023
1 parent 63a067e commit 4549422
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/lib/status_reach_finder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4549422

Please sign in to comment.