Commit 1ff92c8e authored by Igor Drozdov's avatar Igor Drozdov

Merge branch 'pl-spec-repeated-example-banzai-autolink' into 'master'

Remove duplicate spec example in autolink filter

See merge request gitlab-org/gitlab!28607
parents ce38c97b e5b60d05
......@@ -401,7 +401,6 @@ RSpec/RepeatedExample:
- 'spec/frontend/fixtures/merge_requests.rb'
- 'spec/graphql/gitlab_schema_spec.rb'
- 'spec/helpers/users_helper_spec.rb'
- 'spec/lib/banzai/filter/autolink_filter_spec.rb'
- 'spec/lib/gitlab/closing_issue_extractor_spec.rb'
- 'spec/lib/gitlab/danger/changelog_spec.rb'
- 'spec/lib/gitlab/git/blob_spec.rb'
......
......@@ -192,11 +192,6 @@ describe Banzai::Filter::AutolinkFilter do
expect(doc.text).to eq "See <<<#{link}>>>"
end
it 'accepts link_attr options' do
doc = filter("See #{link}", link_attr: { class: 'custom' })
expect(doc.at_css('a')['class']).to eq 'custom'
end
it 'escapes RTLO and other characters' do
# rendered text looks like "http://example.com/evilexe.mp3"
evil_link = "#{link}evil\u202E3pm.exe"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment