diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2021-03-01 04:59:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-01 04:59:13 +0100 |
commit | 9aa37b32c3307dcb5896e1b768967666a6fdbf65 (patch) | |
tree | d10630dcc1a46d450be7b711e9ae47c91492d2cf /spec/controllers | |
parent | b4cb8c3c8356e226061fd70ae2139318c6a558e5 (diff) |
Add `details` to error response for `POST /api/v1/accounts` in REST API (#15803)
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/auth/sessions_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/auth/sessions_controller_spec.rb b/spec/controllers/auth/sessions_controller_spec.rb index d3a9a11eb..d03ae51e8 100644 --- a/spec/controllers/auth/sessions_controller_spec.rb +++ b/spec/controllers/auth/sessions_controller_spec.rb @@ -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 |