Update spec file
This commit is contained in:
parent
4233c9aee5
commit
adba85755d
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ RSpec.describe Redcarpet::TrustedRenderer do
|
|||
|
||||
it 'renders external links with target="_blank" and rel="noopener noreferrer"' do
|
||||
markdown = "[Visit](http://example.com)"
|
||||
expect(renderer.render(markdown)).to include('<a href="http://example.com" title="Nouvel onglet" target="_blank" rel="noopener noreferrer">Visit</a>')
|
||||
expect(renderer.render(markdown)).to include('<a href="http://example.com" title="Visit — Nouvel onglet" target="_blank" rel="noopener noreferrer">Visit</a>')
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -24,7 +24,7 @@ RSpec.describe Redcarpet::TrustedRenderer do
|
|||
context 'when autolinking' do
|
||||
it 'autolinks URLs' do
|
||||
markdown = "Visit http://example.com"
|
||||
expect(renderer.render(markdown)).to include('Visit <a href="http://example.com" title="Nouvel onglet" target="_blank" rel="noopener noreferrer">http://example.com</a>')
|
||||
expect(renderer.render(markdown)).to include('Visit <a href="http://example.com" title="http://example.com — Nouvel onglet" target="_blank" rel="noopener noreferrer">http://example.com</a>')
|
||||
end
|
||||
|
||||
it 'autolinks email addresses with mailto' do
|
||||
|
|
Loading…
Reference in a new issue