Commit 567020a9 authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'increase_test_coverage' into 'master'

Increase test coverage for vulnerability_presenter

See merge request gitlab-org/gitlab!50401
parents 413d723b aff1bf8d
......@@ -9,6 +9,20 @@ RSpec.describe VulnerabilityPresenter do
subject { described_class.new(finding.vulnerability) }
describe '#scanner' do
it 'returns the scanner for a finding' do
expect(subject.scanner).to eql(finding.scanner)
end
end
describe '#remediations' do
let(:finding) { create(:vulnerabilities_finding, :with_secret_detection, :with_remediation, pipelines: [pipeline], project: project) }
it 'returns remediations' do
expect(subject.remediations.count).to be(1)
end
end
describe '#location_link_with_raw_path' do
it 'returns the location link in raw format' do
path = subject.location_link_with_raw_path
......
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