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
af349eb6
Commit
af349eb6
authored
May 19, 2020
by
Rajendra Kadam
Committed by
Peter Leitzen
May 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix leaky constant in system check spec
parent
0775c2bd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
10 deletions
+17
-10
.rubocop.yml
.rubocop.yml
+0
-1
changelogs/unreleased/leaky-constant-fix-23.yml
changelogs/unreleased/leaky-constant-fix-23.yml
+5
-0
spec/lib/system_check_spec.rb
spec/lib/system_check_spec.rb
+12
-9
No files found.
.rubocop.yml
View file @
af349eb6
...
@@ -379,7 +379,6 @@ RSpec/LeakyConstantDeclaration:
...
@@ -379,7 +379,6 @@ RSpec/LeakyConstantDeclaration:
-
'
spec/lib/marginalia_spec.rb'
-
'
spec/lib/marginalia_spec.rb'
-
'
spec/lib/omni_auth/strategies/jwt_spec.rb'
-
'
spec/lib/omni_auth/strategies/jwt_spec.rb'
-
'
spec/lib/system_check/simple_executor_spec.rb'
-
'
spec/lib/system_check/simple_executor_spec.rb'
-
'
spec/lib/system_check_spec.rb'
-
'
spec/mailers/notify_spec.rb'
-
'
spec/mailers/notify_spec.rb'
-
'
spec/migrations/20191125114345_add_admin_mode_protected_path_spec.rb'
-
'
spec/migrations/20191125114345_add_admin_mode_protected_path_spec.rb'
-
'
spec/migrations/encrypt_plaintext_attributes_on_application_settings_spec.rb'
-
'
spec/migrations/encrypt_plaintext_attributes_on_application_settings_spec.rb'
...
...
changelogs/unreleased/leaky-constant-fix-23.yml
0 → 100644
View file @
af349eb6
---
title
:
Fix leaky constant issue in system check spec
merge_request
:
32080
author
:
Rajendra Kadam
type
:
fixed
spec/lib/system_check_spec.rb
View file @
af349eb6
...
@@ -4,19 +4,22 @@ require 'spec_helper'
...
@@ -4,19 +4,22 @@ require 'spec_helper'
require
'rake_helper'
require
'rake_helper'
describe
SystemCheck
do
describe
SystemCheck
do
class
SimpleCheck
<
SystemCheck
::
BaseCheck
before
do
def
check?
stub_const
(
'SimpleCheck'
,
Class
.
new
(
SystemCheck
::
BaseCheck
))
true
stub_const
(
'OtherCheck'
,
Class
.
new
(
SystemCheck
::
BaseCheck
))
SimpleCheck
.
class_eval
do
def
check?
true
end
end
end
end
class
OtherCheck
<
SystemCheck
::
BaseCheck
OtherCheck
.
class_eval
do
def
check?
def
check?
false
false
end
end
end
end
before
do
silence_output
silence_output
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