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
4a067f44
Commit
4a067f44
authored
May 19, 2020
by
Rajendra Kadam
Committed by
Peter Leitzen
May 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stub class in resolve discussion spec
parent
1d35e510
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
10 deletions
+15
-10
.rubocop.yml
.rubocop.yml
+0
-1
changelogs/unreleased/leaky-constant-fix-7.yml
changelogs/unreleased/leaky-constant-fix-7.yml
+5
-0
spec/services/issues/resolve_discussions_spec.rb
spec/services/issues/resolve_discussions_spec.rb
+10
-9
No files found.
.rubocop.yml
View file @
4a067f44
...
@@ -395,7 +395,6 @@ RSpec/LeakyConstantDeclaration:
...
@@ -395,7 +395,6 @@ RSpec/LeakyConstantDeclaration:
-
'
spec/serializers/commit_entity_spec.rb'
-
'
spec/serializers/commit_entity_spec.rb'
-
'
spec/services/clusters/applications/check_installation_progress_service_spec.rb'
-
'
spec/services/clusters/applications/check_installation_progress_service_spec.rb'
-
'
spec/services/clusters/applications/check_uninstall_progress_service_spec.rb'
-
'
spec/services/clusters/applications/check_uninstall_progress_service_spec.rb'
-
'
spec/services/issues/resolve_discussions_spec.rb'
-
'
spec/support/shared_contexts/spam_constants.rb'
-
'
spec/support/shared_contexts/spam_constants.rb'
-
'
spec/support/shared_examples/quick_actions/issuable/issuable_quick_actions_shared_examples.rb'
-
'
spec/support/shared_examples/quick_actions/issuable/issuable_quick_actions_shared_examples.rb'
-
'
spec/support_specs/matchers/exceed_query_limit_helpers_spec.rb'
-
'
spec/support_specs/matchers/exceed_query_limit_helpers_spec.rb'
...
...
changelogs/unreleased/leaky-constant-fix-7.yml
0 → 100644
View file @
4a067f44
---
title
:
Stub class constant in resolve discussion spec
merge_request
:
31965
author
:
Rajendra Kadam
type
:
fixed
spec/services/issues/resolve_discussions_spec.rb
View file @
4a067f44
...
@@ -3,19 +3,20 @@
...
@@ -3,19 +3,20 @@
require
'spec_helper.rb'
require
'spec_helper.rb'
describe
Issues
::
ResolveDiscussions
do
describe
Issues
::
ResolveDiscussions
do
class
DummyService
<
Issues
::
BaseService
include
::
Issues
::
ResolveDiscussions
def
initialize
(
*
args
)
super
filter_resolve_discussion_params
end
end
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
before
do
before
do
stub_const
(
'DummyService'
,
Class
.
new
(
Issues
::
BaseService
))
DummyService
.
class_eval
do
include
::
Issues
::
ResolveDiscussions
def
initialize
(
*
args
)
super
filter_resolve_discussion_params
end
end
project
.
add_developer
(
user
)
project
.
add_developer
(
user
)
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