diff --git a/spec/lib/formatter_spec.rb b/spec/lib/formatter_spec.rb index 2e0f11110..ec61eaa43 100644 --- a/spec/lib/formatter_spec.rb +++ b/spec/lib/formatter_spec.rb @@ -165,6 +165,14 @@ RSpec.describe Formatter do expect(subject).to eq '

http://www\.google\.com

' 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">#hashtag') + end + end end describe '#reformat' do