Adapt settings spec to glitch-soc
This commit is contained in:
parent
4daed855e5
commit
f214813919
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user