From 08e94d1b197a053504ce37dbbe03216a80043b10 Mon Sep 17 00:00:00 2001 From: abcang Date: Wed, 10 May 2017 01:17:41 +0900 Subject: Fixed bug that timeline can not be displayed by InvalidURIError (#2947) --- spec/lib/formatter_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'spec/lib') diff --git a/spec/lib/formatter_spec.rb b/spec/lib/formatter_spec.rb index 81eaf00e8..791bcce86 100644 --- a/spec/lib/formatter_spec.rb +++ b/spec/lib/formatter_spec.rb @@ -123,6 +123,13 @@ RSpec.describe Formatter do expect(subject).to match '

<img src="javascript:alert('XSS');">

' end end + + context 'contains invalid URL' do + let(:local_text) { 'http://www\.google\.com' } + it 'has valid url' do + expect(subject).to eq '

http://www\.google\.com

' + end + end end describe '#reformat' do -- cgit