Adapt settings spec to glitch-soc

main-rebase-security-fix
Claire 2024-06-11 19:54:27 +02:00
parent 4daed855e5
commit f214813919
1 changed files with 2 additions and 2 deletions

View File

@ -23,11 +23,11 @@ describe Settings::Preferences::AppearanceController do
end end
describe 'PUT #update' do describe 'PUT #update' do
subject { put :update, params: { user: { settings_attributes: { theme: 'contrast' } } } } subject { put :update, params: { user: { settings_attributes: { skin: 'contrast' } } } }
it 'redirects correctly' do it 'redirects correctly' do
expect { subject } expect { subject }
.to change { user.reload.settings.theme }.to('contrast') .to change { user.reload.settings.skin }.to('contrast')
expect(response).to redirect_to(settings_preferences_appearance_path) expect(response).to redirect_to(settings_preferences_appearance_path)
end end