Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f75a0f7b
Commit
f75a0f7b
authored
May 20, 2020
by
Rajendra Kadam
Committed by
Peter Leitzen
May 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix leaky constant in factory spec
parent
1f2f456c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
.rubocop.yml
.rubocop.yml
+0
-1
changelogs/unreleased/leaky-constant-fix-38.yml
changelogs/unreleased/leaky-constant-fix-38.yml
+5
-0
spec/lib/gitlab/config/entry/factory_spec.rb
spec/lib/gitlab/config/entry/factory_spec.rb
+7
-4
No files found.
.rubocop.yml
View file @
f75a0f7b
...
...
@@ -353,7 +353,6 @@ RSpec/LeakyConstantDeclaration:
-
'
spec/lib/gitlab/ci/config/entry/retry_spec.rb'
-
'
spec/lib/gitlab/cluster/mixins/puma_cluster_spec.rb'
-
'
spec/lib/gitlab/cluster/mixins/unicorn_http_server_spec.rb'
-
'
spec/lib/gitlab/config/entry/factory_spec.rb'
-
'
spec/lib/gitlab/config/entry/simplifiable_spec.rb'
-
'
spec/lib/gitlab/database/migration_helpers_spec.rb'
-
'
spec/lib/gitlab/database/obsolete_ignored_columns_spec.rb'
...
...
changelogs/unreleased/leaky-constant-fix-38.yml
0 → 100644
View file @
f75a0f7b
---
title
:
Fix leaky constant issue in factory spec
merge_request
:
32174
author
:
Rajendra Kadam
type
:
fixed
spec/lib/gitlab/config/entry/factory_spec.rb
View file @
f75a0f7b
...
...
@@ -4,11 +4,14 @@ require 'spec_helper'
describe
Gitlab
::
Config
::
Entry
::
Factory
do
describe
'#create!'
do
class
Script
<
Gitlab
::
Config
::
Entry
::
Node
include
Gitlab
::
Config
::
Entry
::
Validatable
before
do
stub_const
(
'Script'
,
Class
.
new
(
Gitlab
::
Config
::
Entry
::
Node
))
Script
.
class_eval
do
include
Gitlab
::
Config
::
Entry
::
Validatable
validations
do
validates
:config
,
array_of_strings:
true
validations
do
validates
:config
,
array_of_strings:
true
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment