From 3f59238207e7cd9b2b1b73e3d4259bd6e82ebc64 Mon Sep 17 00:00:00 2001
From: Eugen Rochko <eugen@zeonfederated.com>
Date: Fri, 23 Jun 2017 17:01:53 +0200
Subject: [PATCH] Add important test for full-width hashtags (#3911)

---
 spec/models/tag_spec.rb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/spec/models/tag_spec.rb b/spec/models/tag_spec.rb
index 2496946cbe..7c574eabe9 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
-- 
GitLab