mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-25 15:09:29 +00:00
Add test when hashtag and URL are concatenated (#3279)
This commit is contained in:
parent
f937cad68f
commit
bbc3db8b20
|
@ -165,6 +165,14 @@ RSpec.describe Formatter do
|
||||||
expect(subject).to eq '<p>http://www\.google\.com</p>'
|
expect(subject).to eq '<p>http://www\.google\.com</p>'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
context 'concatenates hashtag and URL' do
|
||||||
|
let(:local_text) { '#hashtaghttps://www.google.com' }
|
||||||
|
|
||||||
|
it 'has valid hashtag' do
|
||||||
|
expect(subject).to match('/tags/hashtag" class="mention hashtag" rel="tag">#<span>hashtag</span></a>')
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe '#reformat' do
|
describe '#reformat' do
|
||||||
|
|
Loading…
Reference in a new issue