From: Thibaut Girka Date: Fri, 13 Sep 2019 18:18:25 +0000 (+0200) Subject: Fix tests being broken because of different default setting X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=b83e2df6b59ccd7cbe8f9145e06b75547dc1101a;p=mastodon.git Fix tests being broken because of different default setting --- diff --git a/spec/controllers/api/v1/timelines/public_controller_spec.rb b/spec/controllers/api/v1/timelines/public_controller_spec.rb index 737aedba6..b8e9d8674 100644 --- a/spec/controllers/api/v1/timelines/public_controller_spec.rb +++ b/spec/controllers/api/v1/timelines/public_controller_spec.rb @@ -44,6 +44,10 @@ describe Api::V1::Timelines::PublicController do context 'without a user context' do let(:token) { Fabricate(:accessible_access_token, resource_owner_id: nil) } + before do + Setting.timeline_preview = true + end + describe 'GET #show' do it 'returns http success' do get :show