about summary refs log tree commit diff
path: root/spec
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-06-23 17:01:53 +0200
committerGitHub <noreply@github.com>2017-06-23 17:01:53 +0200
commit3f59238207e7cd9b2b1b73e3d4259bd6e82ebc64 (patch)
tree50a2c24c71932f2bfc3dd43778a68904c751146e /spec
parenteff94164696ecb126ab47b85ee842e65692b649a (diff)
Add important test for full-width hashtags (#3911)
Diffstat (limited to 'spec')
-rw-r--r--spec/models/tag_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/models/tag_spec.rb b/spec/models/tag_spec.rb
index 2496946cb..7c574eabe 100644
--- a/spec/models/tag_spec.rb
+++ b/spec/models/tag_spec.rb
@@ -11,6 +11,10 @@ RSpec.describe Tag, type: :model do
     it 'does not match URLs with hashtag-like anchors' do
       expect(subject.match('https://en.wikipedia.org/wiki/Ghostbusters_(song)#Lawsuit')).to be_nil
     end
+
+    it 'matches #aesthetic' do
+      expect(subject.match('this is #aesthetic')).to_not be_nil
+    end
   end
 
   describe '.search_for' do