Adapt settings spec to glitch-soc
This commit is contained in:
		
							parent
							
								
									4daed855e5
								
							
						
					
					
						commit
						f214813919
					
				|  | @ -23,11 +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' } } } } |     subject { put :update, params: { user: { settings_attributes: { skin: 'contrast' } } } } | ||||||
| 
 | 
 | ||||||
|     it 'redirects correctly' do |     it 'redirects correctly' do | ||||||
|       expect { subject } |       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) |       expect(response).to redirect_to(settings_preferences_appearance_path) | ||||||
|     end |     end | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue