about summary refs log tree commit diff
path: root/spec/validators/blacklisted_email_validator_spec.rb
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-03-02 16:33:06 +0100
committerGitHub <noreply@github.com>2021-03-02 16:33:06 +0100
commitf4abf8e7829c6a5b952dea6fb9ad01b6b3601f95 (patch)
treeafc41f393d862885eae63cccd3b72262ce08128b /spec/validators/blacklisted_email_validator_spec.rb
parent4aa860b65bd796b09dc0ceffa1fdd7de31060a34 (diff)
parent7336276252ab89985c609359eb9953fca0383db3 (diff)
Merge pull request #1504 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'spec/validators/blacklisted_email_validator_spec.rb')
-rw-r--r--spec/validators/blacklisted_email_validator_spec.rb4
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