diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-11-22 10:28:43 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-11-22 10:28:43 +0100 |
commit | ff42233aaeed91f8c14da150c7241d3d0b72841f (patch) | |
tree | d8b6e5807bb722fc92087bc6c52679ad92e8e2b2 /spec/models | |
parent | e0e7a09cfed2b311f055522eea45caac0838d87a (diff) | |
parent | f343ed42ff1d288989f3a577362cc672e4cae437 (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/account/field_spec.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/models/account/field_spec.rb b/spec/models/account/field_spec.rb index b4beec048..0ac9769bc 100644 --- a/spec/models/account/field_spec.rb +++ b/spec/models/account/field_spec.rb @@ -67,7 +67,15 @@ RSpec.describe Account::Field, type: :model do end context 'for an IDN URL' do - let(:value) { 'http://twitter.com∕dougallj∕status∕1590357240443437057.ê.cc/twitter.html' } + let(:value) { 'https://twitter.com∕dougallj∕status∕1590357240443437057.ê.cc/twitter.html' } + + it 'returns false' do + expect(subject.verifiable?).to be false + end + end + + context 'for a URL with a non-normalized path' do + let(:value) { 'https://github.com/octocatxxxxxxxx/../mastodon' } it 'returns false' do expect(subject.verifiable?).to be false |