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/validators/blacklisted_email_validator_spec.rb | |
parent | b4cb8c3c8356e226061fd70ae2139318c6a558e5 (diff) |
Add `details` to error response for `POST /api/v1/accounts` in REST API (#15803)
Diffstat (limited to 'spec/validators/blacklisted_email_validator_spec.rb')
-rw-r--r-- | spec/validators/blacklisted_email_validator_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/validators/blacklisted_email_validator_spec.rb b/spec/validators/blacklisted_email_validator_spec.rb index f0708dc46..53b355a57 100644 --- a/spec/validators/blacklisted_email_validator_spec.rb +++ b/spec/validators/blacklisted_email_validator_spec.rb @@ -17,7 +17,7 @@ RSpec.describe BlacklistedEmailValidator, type: :validator do let(:blocked_email) { true } it 'calls errors.add' do - expect(errors).to have_received(:add).with(:email, I18n.t('users.blocked_email_provider')) + expect(errors).to have_received(:add).with(:email, :blocked) end end @@ -25,7 +25,7 @@ RSpec.describe BlacklistedEmailValidator, type: :validator do let(:blocked_email) { false } it 'not calls errors.add' do - expect(errors).not_to have_received(:add).with(:email, I18n.t('users.blocked_email_provider')) + expect(errors).not_to have_received(:add).with(:email, :blocked) end end end |