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
d39a2d4f
Commit
d39a2d4f
authored
May 21, 2020
by
Rajendra Kadam
Committed by
Peter Leitzen
May 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix leaky constant in creds factory spec
parent
bed04fae
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
12 deletions
+19
-12
.rubocop.yml
.rubocop.yml
+0
-4
changelogs/unreleased/leaky-constant-fix-39.yml
changelogs/unreleased/leaky-constant-fix-39.yml
+5
-0
spec/lib/gitlab/ci/build/credentials/factory_spec.rb
spec/lib/gitlab/ci/build/credentials/factory_spec.rb
+6
-4
spec/lib/gitlab/ci/config/entry/retry_spec.rb
spec/lib/gitlab/ci/config/entry/retry_spec.rb
+2
-2
spec/lib/gitlab/cluster/mixins/puma_cluster_spec.rb
spec/lib/gitlab/cluster/mixins/puma_cluster_spec.rb
+3
-1
spec/lib/gitlab/cluster/mixins/unicorn_http_server_spec.rb
spec/lib/gitlab/cluster/mixins/unicorn_http_server_spec.rb
+3
-1
No files found.
.rubocop.yml
View file @
d39a2d4f
...
...
@@ -350,10 +350,6 @@ RSpec/LeakyConstantDeclaration:
Exclude
:
-
'
spec/db/schema_spec.rb'
-
'
spec/lib/feature_spec.rb'
-
'
spec/lib/gitlab/ci/build/credentials/factory_spec.rb'
-
'
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/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-39.yml
0 → 100644
View file @
d39a2d4f
---
title
:
Fix leaky constant issue in creds factory spec
merge_request
:
32176
author
:
Rajendra Kadam
type
:
fixed
spec/lib/gitlab/ci/build/credentials/factory_spec.rb
View file @
d39a2d4f
...
...
@@ -7,11 +7,13 @@ describe Gitlab::Ci::Build::Credentials::Factory do
subject
{
described_class
.
new
(
build
).
create!
}
class
TestProvider
def
initialize
(
build
);
end
end
before
do
stub_const
(
'TestProvider'
,
Class
.
new
)
TestProvider
.
class_eval
do
def
initialize
(
build
);
end
end
allow_next_instance_of
(
described_class
)
do
|
instance
|
allow
(
instance
).
to
receive
(
:providers
).
and_return
([
TestProvider
])
end
...
...
spec/lib/gitlab/ci/config/entry/retry_spec.rb
View file @
d39a2d4f
...
...
@@ -94,7 +94,7 @@ describe Gitlab::Ci::Config::Entry::Retry do
# sure this is catched, check explicitly that all of the documented
# values are valid. If they are not it means the documentation and this
# array must be updated.
RETRY_WHEN_IN_DOCUMENTATION
=
%w[
retry_when_in_documentation
=
%w[
always
unknown_failure
script_failure
...
...
@@ -111,7 +111,7 @@ describe Gitlab::Ci::Config::Entry::Retry do
data_integrity_failure
]
.
freeze
RETRY_WHEN_IN_DOCUMENTATION
.
each
do
|
reason
|
retry_when_in_documentation
.
each
do
|
reason
|
context
"with when from documentation `
#{
reason
}
`"
do
let
(
:when
)
{
reason
}
...
...
spec/lib/gitlab/cluster/mixins/puma_cluster_spec.rb
View file @
d39a2d4f
...
...
@@ -5,7 +5,9 @@ require 'spec_helper'
# For easier debugging set `PUMA_DEBUG=1`
describe
Gitlab
::
Cluster
::
Mixins
::
PumaCluster
do
PUMA_STARTUP_TIMEOUT
=
30
before
do
stub_const
(
'PUMA_STARTUP_TIMEOUT'
,
30
)
end
context
'when running Puma in Cluster-mode'
do
using
RSpec
::
Parameterized
::
TableSyntax
...
...
spec/lib/gitlab/cluster/mixins/unicorn_http_server_spec.rb
View file @
d39a2d4f
...
...
@@ -5,7 +5,9 @@ require 'spec_helper'
# For easier debugging set `UNICORN_DEBUG=1`
describe
Gitlab
::
Cluster
::
Mixins
::
UnicornHttpServer
do
UNICORN_STARTUP_TIMEOUT
=
30
before
do
stub_const
(
'UNICORN_STARTUP_TIMEOUT'
,
30
)
end
context
'when running Unicorn'
do
using
RSpec
::
Parameterized
::
TableSyntax
...
...
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