about summary refs log tree commit diff
path: root/spec/models
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-07-19 23:37:41 +0200
committerThibaut Girka <thib@sitedethib.com>2019-07-19 23:37:41 +0200
commit055450bc02732f654317096f56b03b77f5b84270 (patch)
tree1b3dd84f1bdc3bfd1ce95a2b0552819ced3e159e /spec/models
parent86d446194823a416a99c5b4657f4684fb0e07ae9 (diff)
parentc37c1da41e1c490771a409ad1b12f3db55af4cee (diff)
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'spec/models')
-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 161862392..9a30ceaa5 100644
--- a/spec/models/tag_spec.rb
+++ b/spec/models/tag_spec.rb
@@ -69,6 +69,10 @@ RSpec.describe Tag, type: :model do
     it 'does not match middle dots at the end' do
       expect(subject.match('hello #one·two·three·').to_s).to eq ' #one·two·three'
     end
+
+    it 'does not match purely-numeric hashtags' do
+      expect(subject.match('hello #0123456')).to be_nil
+    end
   end
 
   describe '#to_param' do