Fix tests

This commit is contained in:
Claire 2025-10-02 17:29:15 +02:00
parent 1b48e74a48
commit 39b45dedda
3 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ RSpec.describe 'Link' do
context 'when the instance does not allow public preview' do context 'when the instance does not allow public preview' do
before do before do
Form::AdminSettings.new(timeline_preview: false).save Form::AdminSettings.new(local_topic_feed_access: 'authenticated', remote_topic_feed_access: 'authenticated').save
end end
it_behaves_like 'forbidden for wrong scope', 'profile' it_behaves_like 'forbidden for wrong scope', 'profile'

View File

@ -98,7 +98,7 @@ RSpec.describe 'Public' do
context 'when the instance does not allow public preview' do context 'when the instance does not allow public preview' do
before do before do
Form::AdminSettings.new(timeline_preview: false).save Form::AdminSettings.new(local_live_feed_access: 'authenticated', remote_live_feed_access: 'authenticated').save
end end
it_behaves_like 'forbidden for wrong scope', 'profile' it_behaves_like 'forbidden for wrong scope', 'profile'

View File

@ -99,7 +99,7 @@ RSpec.describe 'Tag' do
context 'when the instance does not allow public preview' do context 'when the instance does not allow public preview' do
before do before do
Form::AdminSettings.new(timeline_preview: false).save Form::AdminSettings.new(local_topic_feed_access: 'authenticated', remote_topic_feed_access: 'authenticated').save
end end
it_behaves_like 'forbidden for wrong scope', 'profile' it_behaves_like 'forbidden for wrong scope', 'profile'