1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-24 07:06:34 +09:00

Adapt settings spec to glitch-soc

This commit is contained in:
Claire 2024-06-11 19:54:27 +02:00
parent 4daed855e5
commit f214813919

View File

@ -23,11 +23,11 @@ describe Settings::Preferences::AppearanceController do
end
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
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)
end