spec/slacken_spec.rb in slacken-0.1.3 vs spec/slacken_spec.rb in slacken-0.1.4

- old
+ new

@@ -317,14 +317,14 @@ it 'ignores the link' do should eq "<#{src}|#{alt}>" end end - context 'when a is given' do - let(:source) { '<p><a href="http://qiita.com">qiita</a></p>' } + context 'when space-separated links are given' do + let(:source) { '<p><a href="/alice">@alice</a> <a href="/bob">@bob</a></p>' } - it 'converts to link notation' do - should eq "<http://qiita.com|qiita>" + it 'preserves the space' do + should eq "@alice @bob" end end context 'when hr is given' do let(:source) do