about summary refs log tree commit diff
path: root/spec/models
diff options
context:
space:
mode:
authormasarakki <masaki182@gmail.com>2017-05-06 02:48:22 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-05 19:48:22 +0200
commitd08f1112d517788fb66d2683766cc168bac48315 (patch)
tree9ea8c15e12da05deae7552f76c18513c27d94fdd /spec/models
parentbcfd9a2f8ecadd55e0a447eff37299f6cbd55a11 (diff)
use Twitter::Extractor for creating links (#2502)
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/account_spec.rb4
1 files changed, 4 insertions, 0 deletions
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