Merge remote-tracking branch 'parent/main' into upstream-20241026

This commit is contained in:
KMY 2024-10-26 10:41:00 +09:00
commit 0c99b8fbb0
79 changed files with 2403 additions and 2056 deletions

View file

@ -47,6 +47,26 @@ RSpec.describe StatusesHelper do
end
end
context 'with a status that is public_unlisted' do
let(:status) { Status.new(visibility: 'public_unlisted') }
it 'returns the correct fa icon' do
result = helper.visibility_icon(status)
expect(result).to match('cloud')
end
end
context 'with a status that is login' do
let(:status) { Status.new(visibility: 'login') }
it 'returns the correct fa icon' do
result = helper.visibility_icon(status)
expect(result).to match('key')
end
end
context 'with a status that is unlisted' do
let(:status) { Status.new(visibility: 'unlisted') }
@ -76,6 +96,16 @@ RSpec.describe StatusesHelper do
expect(result).to match('alternate_email')
end
end
context 'with a status that is limited' do
let(:status) { Status.new(visibility: 'limited') }
it 'returns the correct fa icon' do
result = helper.visibility_icon(status)
expect(result).to match('shield')
end
end
end
describe '#stream_link_target' do