0
0
Fork 0

Remove code for rendering public and hashtag timelines outside the web UI (#19257)

This commit is contained in:
Eugen Rochko 2022-10-04 20:13:46 +02:00 committed by GitHub
parent e2b561e3a5
commit 02ba9cfa35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 13 additions and 446 deletions

View file

@ -10,14 +10,9 @@ RSpec.describe TagsController, type: :controller do
let!(:late) { Fabricate(:status, tags: [tag], text: 'late #test') }
context 'when tag exists' do
it 'returns http success' do
it 'redirects to web version' do
get :show, params: { id: 'test', max_id: late.id }
expect(response).to have_http_status(200)
end
it 'renders application layout' do
get :show, params: { id: 'test', max_id: late.id }
expect(response).to render_template layout: 'public'
expect(response).to redirect_to('/web/tags/test')
end
end