Commit 248cf393 authored by Abdul Wadood's avatar Abdul Wadood Committed by Alper Akgun

Fix RSpec/EmptyLineAfterFinalLetItBe for ee/spec/services/security

parent 4936d09d
...@@ -597,9 +597,6 @@ RSpec/EmptyLineAfterFinalLetItBe: ...@@ -597,9 +597,6 @@ RSpec/EmptyLineAfterFinalLetItBe:
- ee/spec/services/requirements_management/update_requirement_service_spec.rb - ee/spec/services/requirements_management/update_requirement_service_spec.rb
- ee/spec/services/resource_access_tokens/create_service_spec.rb - ee/spec/services/resource_access_tokens/create_service_spec.rb
- ee/spec/services/resource_access_tokens/revoke_service_spec.rb - ee/spec/services/resource_access_tokens/revoke_service_spec.rb
- ee/spec/services/security/auto_fix_label_service_spec.rb
- ee/spec/services/security/store_grouped_scans_service_spec.rb
- ee/spec/services/security/store_report_service_spec.rb
- ee/spec/services/status_page/publish_attachments_service_spec.rb - ee/spec/services/status_page/publish_attachments_service_spec.rb
- ee/spec/services/status_page/publish_details_service_spec.rb - ee/spec/services/status_page/publish_details_service_spec.rb
- ee/spec/services/status_page/publish_list_service_spec.rb - ee/spec/services/status_page/publish_list_service_spec.rb
......
---
title: Fix RSpec/EmptyLineAfterFinalLetItBe rubocop offenses in ee/spec/services/security
merge_request: 58323
author: Abdul Wadood @abdulwd
type: fixed
...@@ -8,6 +8,7 @@ RSpec.describe Security::AutoFixLabelService do ...@@ -8,6 +8,7 @@ RSpec.describe Security::AutoFixLabelService do
let_it_be(:project) { create(:project) } let_it_be(:project) { create(:project) }
let_it_be(:bot) { create(:user, :security_bot) } let_it_be(:bot) { create(:user, :security_bot) }
let(:label_attributes) { described_class::LABEL_PROPERTIES } let(:label_attributes) { described_class::LABEL_PROPERTIES }
let(:title) { label_attributes[:title] } let(:title) { label_attributes[:title] }
let(:color) { label_attributes[:color] } let(:color) { label_attributes[:color] }
......
...@@ -74,6 +74,7 @@ RSpec.describe Security::StoreGroupedScansService do ...@@ -74,6 +74,7 @@ RSpec.describe Security::StoreGroupedScansService do
let_it_be(:sast_artifact_1) { create(:ee_ci_job_artifact, :sast, job: create(:ee_ci_build)) } let_it_be(:sast_artifact_1) { create(:ee_ci_job_artifact, :sast, job: create(:ee_ci_build)) }
let_it_be(:sast_artifact_2) { create(:ee_ci_job_artifact, :sast, job: create(:ee_ci_build)) } let_it_be(:sast_artifact_2) { create(:ee_ci_job_artifact, :sast, job: create(:ee_ci_build)) }
let_it_be(:sast_artifact_3) { create(:ee_ci_job_artifact, :sast, job: create(:ee_ci_build)) } let_it_be(:sast_artifact_3) { create(:ee_ci_job_artifact, :sast, job: create(:ee_ci_build)) }
let(:scanner_1) { instance_double(::Gitlab::Ci::Reports::Security::Scanner, external_id: 'unknown') } let(:scanner_1) { instance_double(::Gitlab::Ci::Reports::Security::Scanner, external_id: 'unknown') }
let(:scanner_2) { instance_double(::Gitlab::Ci::Reports::Security::Scanner, external_id: 'bandit') } let(:scanner_2) { instance_double(::Gitlab::Ci::Reports::Security::Scanner, external_id: 'bandit') }
let(:scanner_3) { instance_double(::Gitlab::Ci::Reports::Security::Scanner, external_id: 'semgrep') } let(:scanner_3) { instance_double(::Gitlab::Ci::Reports::Security::Scanner, external_id: 'semgrep') }
......
...@@ -4,6 +4,7 @@ require 'spec_helper' ...@@ -4,6 +4,7 @@ require 'spec_helper'
RSpec.describe Security::StoreReportService, '#execute' do RSpec.describe Security::StoreReportService, '#execute' do
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
let(:artifact) { create(:ee_ci_job_artifact, trait) } let(:artifact) { create(:ee_ci_job_artifact, trait) }
let(:report_type) { artifact.file_type } let(:report_type) { artifact.file_type }
let(:project) { artifact.project } let(:project) { artifact.project }
......
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