Commit 5aabe40e authored by Rajendra Kadam's avatar Rajendra Kadam Committed by Peter Leitzen

Add class stubs for RecordsUploads

parent d194f3dc
......@@ -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