diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-11-10 06:27:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-10 06:27:45 +0100 |
commit | 9965a23b043b0ab511e083c44acda891ea441859 (patch) | |
tree | c1281562aca885ca3cea65e5722d0d7a13e85ec5 /spec/models/account | |
parent | 78a6b871fe3dae308380ea88132ddadc86a1431e (diff) |
Change link verification to ignore IDN domains (#20295)
Fix #3833
Diffstat (limited to 'spec/models/account')
-rw-r--r-- | spec/models/account/field_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/account/field_spec.rb b/spec/models/account/field_spec.rb index 7d61a2c62..fcb2a884a 100644 --- a/spec/models/account/field_spec.rb +++ b/spec/models/account/field_spec.rb @@ -66,6 +66,14 @@ RSpec.describe Account::Field, type: :model do end end + context 'for an IDN URL' do + let(:value) { 'http://twitter.com∕dougallj∕status∕1590357240443437057.ê.cc/twitter.html' } + + it 'returns false' do + expect(subject.verifiable?).to be false + end + end + context 'for text that is not a URL' do let(:value) { 'Hello world' } |