Commit 50134ac4 authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'leaky-constant-fix-1' into 'master'

Add class stubs for RecordsUploads

See merge request gitlab-org/gitlab!31938
parents 0d47287e 5aabe40e
......@@ -403,7 +403,6 @@ RSpec/LeakyConstantDeclaration:
- 'spec/support/shared_contexts/spam_constants.rb'
- 'spec/support/shared_examples/quick_actions/issuable/issuable_quick_actions_shared_examples.rb'
- 'spec/support_specs/matchers/exceed_query_limit_helpers_spec.rb'
- 'spec/uploaders/records_uploads_spec.rb'
RSpec/EmptyLineAfterHook:
Enabled: false
......
---
title: Add class stubs and fix leaky constant cop alert
merge_request: 31938
author: Rajendra Kadam
type: fixed
......@@ -4,7 +4,9 @@ require 'spec_helper'
describe RecordsUploads do
let!(:uploader) do
class RecordsUploadsExampleUploader < GitlabUploader
stub_const('RecordsUploadsExampleUploader', Class.new(GitlabUploader))
RecordsUploadsExampleUploader.class_eval do
include RecordsUploads::Concern
storage :file
......
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