Browse Source

Add important test for full-width hashtags (#3911)

pull/4/head
Eugen Rochko 4 years ago
committed by GitHub
parent
commit
3f59238207
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      spec/models/tag_spec.rb

+ 4
- 0
spec/models/tag_spec.rb View 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

Loading…
Cancel
Save