about summary refs log tree commit diff
path: root/spec
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-10-04 20:13:46 +0200
committerGitHub <noreply@github.com>2022-10-04 20:13:46 +0200
commit02ba9cfa35c7b2285950955619ae3431391e9625 (patch)
tree0e1ccc086ba1efde94851f998418d21ac4e278a6 /spec
parente2b561e3a521ff893943c0e9e32952e35934ca54 (diff)
Remove code for rendering public and hashtag timelines outside the web UI (#19257)
Diffstat (limited to 'spec')
-rw-r--r--spec/controllers/tags_controller_spec.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/spec/controllers/tags_controller_spec.rb b/spec/controllers/tags_controller_spec.rb
index 69def90cf..1fd8494d6 100644
--- a/spec/controllers/tags_controller_spec.rb
+++ b/spec/controllers/tags_controller_spec.rb
@@ -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