mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 07:49:29 +00:00
Adapt settings spec to glitch-soc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user