Convert settings/migration spec controller->system (#33496)
		
	This commit is contained in:
		
					parent
					
						
							
								c3fc12c2b4
							
						
					
				
			
			
				commit
				
					
						b6c2923cf7
					
				
			
		
					 3 changed files with 120 additions and 104 deletions
				
			
		
							
								
								
									
										21
									
								
								spec/requests/settings/migrations_spec.rb
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								spec/requests/settings/migrations_spec.rb
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,21 @@ | |||
| # frozen_string_literal: true | ||||
| 
 | ||||
| require 'rails_helper' | ||||
| 
 | ||||
| RSpec.describe 'Settings Migrations' do | ||||
|   describe 'GET #show' do | ||||
|     context 'when user is not signed in' do | ||||
|       subject { get '/settings/migration' } | ||||
| 
 | ||||
|       it { is_expected.to redirect_to new_user_session_path } | ||||
|     end | ||||
|   end | ||||
| 
 | ||||
|   describe 'POST #create' do | ||||
|     context 'when user is not signed in' do | ||||
|       subject { post '/settings/migration' } | ||||
| 
 | ||||
|       it { is_expected.to redirect_to new_user_session_path } | ||||
|     end | ||||
|   end | ||||
| end | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue