]> cat aescling's git repositories - mastodon.git/commitdiff
Add important test for full-width hashtags (#3911)
authorEugen Rochko <eugen@zeonfederated.com>
Fri, 23 Jun 2017 15:01:53 +0000 (17:01 +0200)
committerGitHub <noreply@github.com>
Fri, 23 Jun 2017 15:01:53 +0000 (17:01 +0200)
spec/models/tag_spec.rb

index 2496946cbec405249fd5343233ed97bda01a2460..7c574eabe9597f7d6716e7ad668542a57e8eb78e 100644 (file)
@@ -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