1
0
Fork 0
forked from fedi/mastodon

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

This commit is contained in:
Eugen Rochko 2017-06-23 17:01:53 +02:00 committed by GitHub
parent eff9416469
commit 3f59238207

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 #' do
expect(subject.match('this is #')).to_not be_nil
end
end
describe '.search_for' do