Skip to content

Commit

Permalink
Adjust spec
Browse files Browse the repository at this point in the history
Test for hashtags with underscores.

Custom emojis are not tested for in this file and I'm not sure how best to add that.

Signed-off-by: Plastikmensch <[email protected]>
  • Loading branch information
Plastikmensch committed Nov 25, 2024
1 parent 518a76a commit d1acc6e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/lib/advanced_text_formatter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,14 @@
end
end

context 'with text containing a hashtag with underscores' do
let(:text) { '#_hashtag_' }

it 'creates a hashtag link' do
expect(subject).to include '/tags/_hashtag_" class="mention hashtag" rel="tag">#<span>_hashtag_</span></a>'
end
end

context 'with text with a stand-alone xmpp: URI' do
let(:text) { 'xmpp:[email protected]' }

Expand Down

0 comments on commit d1acc6e

Please sign in to comment.