0
0
Fork 0

Remove unused link_to_older and link_to_newer helper methods (#29620)

This commit is contained in:
Matt Jankowski 2024-03-18 04:54:46 -04:00 committed by GitHub
parent 97a229d5f4
commit ecdbf15ebe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
70 changed files with 0 additions and 163 deletions

View file

@ -29,26 +29,6 @@ describe StatusesHelper do
I18n.t('statuses.content_warning', warning: status.spoiler_text)
end
describe 'link_to_newer' do
it 'returns a link to newer content' do
url = 'https://example.com'
result = helper.link_to_newer(url)
expect(result).to match('load-more')
expect(result).to match(I18n.t('statuses.show_newer'))
end
end
describe 'link_to_older' do
it 'returns a link to older content' do
url = 'https://example.com'
result = helper.link_to_older(url)
expect(result).to match('load-more')
expect(result).to match(I18n.t('statuses.show_older'))
end
end
describe 'fa_visibility_icon' do
context 'with a status that is public' do
let(:status) { Status.new(visibility: 'public') }