Merge remote-tracking branch 'parent/main' into upstream-20240618

This commit is contained in:
KMY 2024-06-18 07:43:33 +09:00
commit aa2cdc898a
271 changed files with 1839 additions and 1397 deletions

View file

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