0
0
Fork 0

use Twitter::Extractor for creating links (#2502)

This commit is contained in:
masarakki 2017-05-06 02:48:22 +09:00 committed by Eugen Rochko
parent bcfd9a2f8e
commit d08f1112d5
4 changed files with 108 additions and 44 deletions

View file

@ -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