about summary refs log tree commit diff
path: root/spec/validators/url_validator_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/validators/url_validator_spec.rb')
-rw-r--r--spec/validators/url_validator_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/validators/url_validator_spec.rb b/spec/validators/url_validator_spec.rb
index a44878a44..85eadeb63 100644
--- a/spec/validators/url_validator_spec.rb
+++ b/spec/validators/url_validator_spec.rb
@@ -19,7 +19,7 @@ RSpec.describe URLValidator, type: :validator do
       let(:compliant) { false }
 
       it 'calls errors.add' do
-        expect(errors).to have_received(:add).with(attribute, I18n.t('applications.invalid_url'))
+        expect(errors).to have_received(:add).with(attribute, :invalid)
       end
     end