Add custom filter tests of kmyblue original params

This commit is contained in:
KMY 2023-08-11 10:16:56 +09:00
parent 5e687f4d93
commit 18583e5275
5 changed files with 129 additions and 5 deletions

View file

@ -178,6 +178,26 @@ RSpec.describe Status do
expect(subject.compute_searchability).to eq 'public'
end
end
context 'when direct-public of local account' do
let(:account_searchability) { :direct }
let(:account_domain) { nil }
let(:status_searchability) { :public }
it 'returns public' do
expect(subject.compute_searchability).to eq 'public'
end
end
context 'when limited-public of local account' do
let(:account_searchability) { :limited }
let(:account_domain) { nil }
let(:status_searchability) { :public }
it 'returns public' do
expect(subject.compute_searchability).to eq 'public'
end
end
end
describe '#content' do