]> cat aescling's git repositories - mastodon.git/commitdiff
Fix tests being broken because of different default setting
authorThibaut Girka <thib@sitedethib.com>
Fri, 13 Sep 2019 18:18:25 +0000 (20:18 +0200)
committerThibaut Girka <thib@sitedethib.com>
Fri, 13 Sep 2019 18:28:22 +0000 (20:28 +0200)
spec/controllers/api/v1/timelines/public_controller_spec.rb

index 737aedba6fd03afaf4622b3cfb21ee0ae4bd0e50..b8e9d86748535ab9b4fe67f3f84e32823bbf4e85 100644 (file)
@@ -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