Commit 5a367ce2 authored by Robert May's avatar Robert May

Fix indentation for rubocop

parent dc876469
...@@ -6,9 +6,11 @@ describe Gitlab::Ci::Parsers::Security::Formatters::Dast do ...@@ -6,9 +6,11 @@ describe Gitlab::Ci::Parsers::Security::Formatters::Dast do
let(:formatter) { described_class.new(parsed_report) } let(:formatter) { described_class.new(parsed_report) }
let(:parsed_report) do let(:parsed_report) do
Gitlab::Json.parse!(File.read( Gitlab::Json.parse!(
File.read(
Rails.root.join('ee/spec/fixtures/security_reports/deprecated/gl-dast-report-no-common-fields.json') Rails.root.join('ee/spec/fixtures/security_reports/deprecated/gl-dast-report-no-common-fields.json')
)) )
)
end end
describe '#format_vulnerability' do describe '#format_vulnerability' do
......
...@@ -8,9 +8,11 @@ describe Gitlab::Ci::Parsers::Security::Formatters::DependencyList do ...@@ -8,9 +8,11 @@ describe Gitlab::Ci::Parsers::Security::Formatters::DependencyList do
let(:sha) { '4242424242424242' } let(:sha) { '4242424242424242' }
let(:parsed_report) do let(:parsed_report) do
Gitlab::Json.parse!(File.read( Gitlab::Json.parse!(
File.read(
Rails.root.join('ee/spec/fixtures/security_reports/dependency_list/gl-dependency-scanning-report.json') Rails.root.join('ee/spec/fixtures/security_reports/dependency_list/gl-dependency-scanning-report.json')
)) )
)
end end
describe '#format' do describe '#format' do
......
...@@ -7,9 +7,11 @@ describe Gitlab::Ci::Parsers::Security::Formatters::DeprecatedContainerScanning ...@@ -7,9 +7,11 @@ describe Gitlab::Ci::Parsers::Security::Formatters::DeprecatedContainerScanning
describe '#format' do describe '#format' do
let(:raw_report) do let(:raw_report) do
Gitlab::Json.parse!(File.read( Gitlab::Json.parse!(
File.read(
Rails.root.join('ee/spec/fixtures/security_reports/deprecated/gl-container-scanning-report.json') Rails.root.join('ee/spec/fixtures/security_reports/deprecated/gl-container-scanning-report.json')
)) )
)
end end
it 'formats the vulnerability into the 1.3 format' do it 'formats the vulnerability into the 1.3 format' do
......
...@@ -4,9 +4,11 @@ require 'spec_helper' ...@@ -4,9 +4,11 @@ require 'spec_helper'
describe Gitlab::Ci::Parsers::Security::Formatters::DeprecatedFormattedContainerScanningVulnerability do describe Gitlab::Ci::Parsers::Security::Formatters::DeprecatedFormattedContainerScanningVulnerability do
let(:raw_report) do let(:raw_report) do
Gitlab::Json.parse!(File.read( Gitlab::Json.parse!(
File.read(
Rails.root.join('ee/spec/fixtures/security_reports/deprecated/gl-container-scanning-report.json') Rails.root.join('ee/spec/fixtures/security_reports/deprecated/gl-container-scanning-report.json')
)) )
)
end end
let(:vulnerability) { raw_report['vulnerabilities'].first } let(:vulnerability) { raw_report['vulnerabilities'].first }
......
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