diff --git a/spec/controllers/api/v1/timelines/tag_controller_spec.rb b/spec/controllers/api/v1/timelines/tag_controller_spec.rb index 1c60798fc..8896f02a7 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 }