Skip to content

Commit

Permalink
Adapt settings spec to glitch-soc
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed Jun 11, 2024
1 parent 4daed85 commit f214813
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
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
Expand Down

0 comments on commit f214813

Please sign in to comment.