Browse Source

Add test when hashtag and URL are concatenated (#3279)

closed-social-glitch-2
abcang 7 years ago
committed by Eugen Rochko
parent
commit
bbc3db8b20
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      spec/lib/formatter_spec.rb

+ 8
- 0
spec/lib/formatter_spec.rb View File

@ -165,6 +165,14 @@ RSpec.describe Formatter do
expect(subject).to eq '<p>http://www\.google\.com</p>'
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
describe '#reformat' do

Loading…
Cancel
Save