0
0
Fork 0

Spec coverage on Settings/ controllers specs (#24221)

This commit is contained in:
Matt Jankowski 2023-04-11 11:35:39 +02:00 committed by GitHub
parent a2a66300d9
commit 36eeb70d53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 205 additions and 20 deletions

View file

@ -14,7 +14,16 @@ describe Settings::Preferences::AppearanceController do
describe 'GET #show' do
it 'returns http success' do
get :show
expect(response).to have_http_status(200)
end
end
describe 'PUT #update' do
it 'redirects correctly' do
put :update, params: { user: { setting_theme: 'contrast' } }
expect(response).to redirect_to(settings_preferences_appearance_path)
end
end
end