Change: #844 searchableByに意図しない値が入っていたときの挙動 (#862)

This commit is contained in:
KMY(雪あすか) 2024-10-02 08:22:30 +09:00 committed by GitHub
parent 7a6ec3603e
commit 294acdfd94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 29 additions and 26 deletions

View file

@ -165,14 +165,6 @@ RSpec.describe ActivityPub::ProcessAccountService do
end
end
context 'when limited old spec' do
let(:searchable_by) { 'as:Limited' }
it 'searchability is limited' do
expect(subject.searchability).to eq 'limited'
end
end
context 'when empty array' do
let(:searchable_by) { '' }
@ -181,6 +173,14 @@ RSpec.describe ActivityPub::ProcessAccountService do
end
end
context 'when unintended value' do
let(:searchable_by) { 'ohagi' }
it 'searchability is direct' do
expect(subject.searchability).to eq 'limited'
end
end
context 'when default value' do
let(:searchable_by) { nil }