From d08f1112d517788fb66d2683766cc168bac48315 Mon Sep 17 00:00:00 2001 From: masarakki Date: Sat, 6 May 2017 02:48:22 +0900 Subject: use Twitter::Extractor for creating links (#2502) --- spec/models/account_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec/models') diff --git a/spec/models/account_spec.rb b/spec/models/account_spec.rb index 157db633a..efd87e871 100644 --- a/spec/models/account_spec.rb +++ b/spec/models/account_spec.rb @@ -379,6 +379,10 @@ RSpec.describe Account, type: :model do it 'does not match URLs' do expect(subject.match('Check this out https://medium.com/@alice/some-article#.abcdef123')).to be_nil end + + xit 'does not match URL querystring' do + expect(subject.match('https://example.com/?x=@alice')).to be_nil + end end describe 'validations' do -- cgit