From f3f3294db5c71f8b6a49555d00b27bd1fcf9cd32 Mon Sep 17 00:00:00 2001 From: Claire Date: Sat, 2 Sep 2023 14:23:18 +0200 Subject: [PATCH] Fix test failures due to different default settings in glitch-soc --- spec/controllers/api/v1/timelines/tag_controller_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/controllers/api/v1/timelines/tag_controller_spec.rb b/spec/controllers/api/v1/timelines/tag_controller_spec.rb index 1c60798fcf..8896f02a77 100644 --- a/spec/controllers/api/v1/timelines/tag_controller_spec.rb +++ b/spec/controllers/api/v1/timelines/tag_controller_spec.rb @@ -22,6 +22,10 @@ describe Api::V1::Timelines::TagController do end context 'when the instance allows public preview' do + before do + Setting.timeline_preview = true + end + context 'when the user is not authenticated' do let(:token) { nil }