Remove unused link_to_older
and link_to_newer
helper methods (#29620)
This commit is contained in:
parent
97a229d5f4
commit
ecdbf15ebe
70 changed files with 0 additions and 163 deletions
|
@ -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') }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue