diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/formatter_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
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 '<p><img src="javascript:alert('XSS');"></p>' end end + + context 'contains invalid URL' do + let(:local_text) { 'http://www\.google\.com' } + it 'has valid url' do + expect(subject).to eq '<p>http://www\.google\.com</p>' + end + end end describe '#reformat' do |