mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-20 03:25:17 +01:00
Use correct params in settings/preferences/appearance
spec (#30379)
This commit is contained in:
parent
b2496177e0
commit
edf6d64eeb
@ -23,8 +23,11 @@ describe Settings::Preferences::AppearanceController do
|
|||||||
end
|
end
|
||||||
|
|
||||||
describe 'PUT #update' do
|
describe 'PUT #update' do
|
||||||
|
subject { put :update, params: { user: { settings_attributes: { theme: 'contrast' } } } }
|
||||||
|
|
||||||
it 'redirects correctly' do
|
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)
|
expect(response).to redirect_to(settings_preferences_appearance_path)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user