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
19ebabff
Commit
19ebabff
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 master check, attr config, issue connection specs
parent
f2699a17
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
14 deletions
+15
-14
.rubocop.yml
.rubocop.yml
+0
-3
changelogs/unreleased/leaky-constant-fix-35.yml
changelogs/unreleased/leaky-constant-fix-35.yml
+5
-0
spec/lib/gitlab/graphql/pagination/keyset/connection_spec.rb
spec/lib/gitlab/graphql/pagination/keyset/connection_spec.rb
+8
-5
spec/lib/gitlab/health_checks/master_check_spec.rb
spec/lib/gitlab/health_checks/master_check_spec.rb
+2
-3
spec/lib/gitlab/import_export/attribute_configuration_spec.rb
.../lib/gitlab/import_export/attribute_configuration_spec.rb
+0
-3
No files found.
.rubocop.yml
View file @
19ebabff
...
@@ -359,9 +359,6 @@ RSpec/LeakyConstantDeclaration:
...
@@ -359,9 +359,6 @@ RSpec/LeakyConstantDeclaration:
-
'
spec/lib/gitlab/database/obsolete_ignored_columns_spec.rb'
-
'
spec/lib/gitlab/database/obsolete_ignored_columns_spec.rb'
-
'
spec/lib/gitlab/database/with_lock_retries_spec.rb'
-
'
spec/lib/gitlab/database/with_lock_retries_spec.rb'
-
'
spec/lib/gitlab/git/diff_collection_spec.rb'
-
'
spec/lib/gitlab/git/diff_collection_spec.rb'
-
'
spec/lib/gitlab/graphql/pagination/keyset/connection_spec.rb'
-
'
spec/lib/gitlab/health_checks/master_check_spec.rb'
-
'
spec/lib/gitlab/import_export/attribute_configuration_spec.rb'
-
'
spec/lib/gitlab/import_export/import_test_coverage_spec.rb'
-
'
spec/lib/gitlab/import_export/import_test_coverage_spec.rb'
-
'
spec/lib/gitlab/import_export/project/relation_factory_spec.rb'
-
'
spec/lib/gitlab/import_export/project/relation_factory_spec.rb'
-
'
spec/lib/gitlab/jira_import/issues_importer_spec.rb'
-
'
spec/lib/gitlab/jira_import/issues_importer_spec.rb'
...
...
changelogs/unreleased/leaky-constant-fix-35.yml
0 → 100644
View file @
19ebabff
---
title
:
Fix leaky constant issue connection, master check and attr config spec
merge_request
:
32144
author
:
Rajendra Kadam
type
:
fixed
spec/lib/gitlab/graphql/pagination/keyset/connection_spec.rb
View file @
19ebabff
...
@@ -9,6 +9,14 @@ describe Gitlab::Graphql::Pagination::Keyset::Connection do
...
@@ -9,6 +9,14 @@ describe Gitlab::Graphql::Pagination::Keyset::Connection do
let
(
:schema
)
{
GraphQL
::
Schema
.
define
(
query:
query_type
,
mutation:
nil
)}
let
(
:schema
)
{
GraphQL
::
Schema
.
define
(
query:
query_type
,
mutation:
nil
)}
let
(
:context
)
{
GraphQL
::
Query
::
Context
.
new
(
query:
OpenStruct
.
new
(
schema:
schema
),
values:
nil
,
object:
nil
)
}
let
(
:context
)
{
GraphQL
::
Query
::
Context
.
new
(
query:
OpenStruct
.
new
(
schema:
schema
),
values:
nil
,
object:
nil
)
}
before
do
stub_const
(
'NoPrimaryKey'
,
Class
.
new
(
ActiveRecord
::
Base
))
NoPrimaryKey
.
class_eval
do
self
.
table_name
=
'no_primary_key'
self
.
primary_key
=
nil
end
end
subject
(
:connection
)
do
subject
(
:connection
)
do
described_class
.
new
(
nodes
,
{
context:
context
,
max_page_size:
3
}.
merge
(
arguments
))
described_class
.
new
(
nodes
,
{
context:
context
,
max_page_size:
3
}.
merge
(
arguments
))
end
end
...
@@ -303,9 +311,4 @@ describe Gitlab::Graphql::Pagination::Keyset::Connection do
...
@@ -303,9 +311,4 @@ describe Gitlab::Graphql::Pagination::Keyset::Connection do
end
end
end
end
end
end
class
NoPrimaryKey
<
ActiveRecord
::
Base
self
.
table_name
=
'no_primary_key'
self
.
primary_key
=
nil
end
end
end
spec/lib/gitlab/health_checks/master_check_spec.rb
View file @
19ebabff
...
@@ -6,10 +6,9 @@ require_relative './simple_check_shared'
...
@@ -6,10 +6,9 @@ require_relative './simple_check_shared'
describe
Gitlab
::
HealthChecks
::
MasterCheck
do
describe
Gitlab
::
HealthChecks
::
MasterCheck
do
let
(
:result_class
)
{
Gitlab
::
HealthChecks
::
Result
}
let
(
:result_class
)
{
Gitlab
::
HealthChecks
::
Result
}
SUCCESS_CODE
=
100
FAILURE_CODE
=
101
before
do
before
do
stub_const
(
'SUCCESS_CODE'
,
100
)
stub_const
(
'FAILURE_CODE'
,
101
)
described_class
.
register_master
described_class
.
register_master
end
end
...
...
spec/lib/gitlab/import_export/attribute_configuration_spec.rb
View file @
19ebabff
...
@@ -43,7 +43,4 @@ describe 'Import/Export attribute configuration' do
...
@@ -43,7 +43,4 @@ describe 'Import/Export attribute configuration' do
IMPORT_EXPORT_CONFIG:
#{
Gitlab
::
ImportExport
.
config_file
}
IMPORT_EXPORT_CONFIG:
#{
Gitlab
::
ImportExport
.
config_file
}
MSG
MSG
end
end
class
Author
<
User
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