about summary refs log tree commit diff
path: root/spec/controllers
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-09-13 20:18:25 +0200
committerThibaut Girka <thib@sitedethib.com>2019-09-13 20:28:22 +0200
commitb83e2df6b59ccd7cbe8f9145e06b75547dc1101a (patch)
tree88ac4e45536fe772a1c47bdf6df27c6ad19a016f /spec/controllers
parent3665d554c579d5804544ee49e3718bb1757ece26 (diff)
Fix tests being broken because of different default setting
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/api/v1/timelines/public_controller_spec.rb4
1 files changed, 4 insertions, 0 deletions
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