Add details to error response for POST /api/v1/accounts in REST API (#15803)
				
					
				
			This commit is contained in:
		@@ -69,7 +69,7 @@ RSpec.describe Auth::SessionsController, type: :controller do
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
        it 'shows a login error' do
 | 
			
		||||
          expect(flash[:alert]).to match I18n.t('devise.failure.invalid', authentication_keys: 'Email')
 | 
			
		||||
          expect(flash[:alert]).to match I18n.t('devise.failure.invalid', authentication_keys: I18n.t('activerecord.attributes.user.email'))
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
        it "doesn't log the user in" do
 | 
			
		||||
@@ -136,7 +136,7 @@ RSpec.describe Auth::SessionsController, type: :controller do
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
        it 'shows a login error' do
 | 
			
		||||
          expect(flash[:alert]).to match I18n.t('devise.failure.invalid', authentication_keys: 'Email')
 | 
			
		||||
          expect(flash[:alert]).to match I18n.t('devise.failure.invalid', authentication_keys: I18n.t('activerecord.attributes.user.email'))
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
        it "doesn't log the user in" do
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user