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: ...@@ -403,7 +403,6 @@ RSpec/LeakyConstantDeclaration:
- 'spec/support/shared_contexts/spam_constants.rb' - 'spec/support/shared_contexts/spam_constants.rb'
- 'spec/support/shared_examples/quick_actions/issuable/issuable_quick_actions_shared_examples.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/support_specs/matchers/exceed_query_limit_helpers_spec.rb'
- 'spec/uploaders/records_uploads_spec.rb'
RSpec/EmptyLineAfterHook: RSpec/EmptyLineAfterHook:
Enabled: false 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' ...@@ -4,7 +4,9 @@ require 'spec_helper'
describe RecordsUploads do describe RecordsUploads do
let!(:uploader) do let!(:uploader) do
class RecordsUploadsExampleUploader < GitlabUploader stub_const('RecordsUploadsExampleUploader', Class.new(GitlabUploader))
RecordsUploadsExampleUploader.class_eval do
include RecordsUploads::Concern include RecordsUploads::Concern
storage :file 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