Commit a4110dd3 authored by Michał Zając's avatar Michał Zając

Remove CodeReuse/ActiveRecord disable statement

parent c3680461
...@@ -8,7 +8,6 @@ RSpec.describe Gitlab::BackgroundMigration::RemoveUndefinedOccurrenceSeverityLev ...@@ -8,7 +8,6 @@ RSpec.describe Gitlab::BackgroundMigration::RemoveUndefinedOccurrenceSeverityLev
let(:scanners) { table(:vulnerability_scanners) } let(:scanners) { table(:vulnerability_scanners) }
let(:projects) { table(:projects) } let(:projects) { table(:projects) }
# rubocop: disable CodeReuse/ActiveRecord
it 'updates undefined severity level to unknown' do it 'updates undefined severity level to unknown' do
projects.create!(id: 123, namespace_id: 12, name: 'gitlab', path: 'gitlab') projects.create!(id: 123, namespace_id: 12, name: 'gitlab', path: 'gitlab')
...@@ -33,7 +32,6 @@ RSpec.describe Gitlab::BackgroundMigration::RemoveUndefinedOccurrenceSeverityLev ...@@ -33,7 +32,6 @@ RSpec.describe Gitlab::BackgroundMigration::RemoveUndefinedOccurrenceSeverityLev
expect(vulnerabilities.where(severity: 2).count).to eq(3) expect(vulnerabilities.where(severity: 2).count).to eq(3)
end end
# rubocop: enable CodeReuse/ActiveRecord
def vuln_params(primary_identifier_id) def vuln_params(primary_identifier_id)
uuid = SecureRandom.uuid uuid = SecureRandom.uuid
......
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