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
822d61ae
Commit
822d61ae
authored
May 19, 2020
by
Rajendra Kadam
Committed by
Peter Leitzen
May 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove constant usage from clone dashboard service spec
parent
b94dac6a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
.rubocop.yml
.rubocop.yml
+0
-1
changelogs/unreleased/leaky-constant-fix-6.yml
changelogs/unreleased/leaky-constant-fix-6.yml
+5
-0
spec/services/metrics/dashboard/clone_dashboard_service_spec.rb
...ervices/metrics/dashboard/clone_dashboard_service_spec.rb
+1
-3
No files found.
.rubocop.yml
View file @
822d61ae
...
...
@@ -399,7 +399,6 @@ RSpec/LeakyConstantDeclaration:
-
'
spec/services/clusters/applications/check_upgrade_progress_service_spec.rb'
-
'
spec/services/clusters/applications/ingress_modsecurity_usage_service_spec.rb'
-
'
spec/services/issues/resolve_discussions_spec.rb'
-
'
spec/services/metrics/dashboard/clone_dashboard_service_spec.rb'
-
'
spec/support/shared_contexts/spam_constants.rb'
-
'
spec/support/shared_examples/quick_actions/issuable/issuable_quick_actions_shared_examples.rb'
-
'
spec/support_specs/matchers/exceed_query_limit_helpers_spec.rb'
...
...
changelogs/unreleased/leaky-constant-fix-6.yml
0 → 100644
View file @
822d61ae
---
title
:
Fix leaky constant cop issue in clone dashboard service spec
merge_request
:
31962
author
:
Rajendra Kadam
type
:
fixed
spec/services/metrics/dashboard/clone_dashboard_service_spec.rb
View file @
822d61ae
...
...
@@ -5,8 +5,6 @@ require 'spec_helper'
describe
Metrics
::
Dashboard
::
CloneDashboardService
,
:use_clean_rails_memory_store_caching
do
include
MetricsDashboardHelpers
STAGES
=
::
Gitlab
::
Metrics
::
Dashboard
::
Stages
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:repository
)
}
let_it_be
(
:environment
)
{
create
(
:environment
,
project:
project
)
}
...
...
@@ -83,7 +81,7 @@ describe Metrics::Dashboard::CloneDashboardService, :use_clean_rails_memory_stor
allow
(
::
Gitlab
::
Metrics
::
Dashboard
::
Processor
).
to
receive
(
:new
).
and_return
(
double
(
process:
file_content_hash
))
end
it_behaves_like
'valid dashboard cloning process'
,
::
Metrics
::
Dashboard
::
SystemDashboardService
::
DASHBOARD_PATH
,
[
STAGES
::
CommonMetricsInserter
,
STAGES
::
CustomMetricsInserter
,
STAGES
::
Sorter
]
it_behaves_like
'valid dashboard cloning process'
,
::
Metrics
::
Dashboard
::
SystemDashboardService
::
DASHBOARD_PATH
,
[
::
Gitlab
::
Metrics
::
Dashboard
::
Stages
::
CommonMetricsInserter
,
::
Gitlab
::
Metrics
::
Dashboard
::
Stages
::
CustomMetricsInserter
,
::
Gitlab
::
Metrics
::
Dashboard
::
Stages
::
Sorter
]
context
'selected branch already exists'
do
let
(
:branch
)
{
'existing_branch'
}
...
...
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