From 9f46488805e86b1bc341ea1620b866016c2ce5ed Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 20 May 2020 14:34:42 +0000 Subject: Add latest changes from gitlab-org/gitlab@13-0-stable-ee --- spec/services/issues/resolve_discussions_spec.rb | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'spec/services/issues/resolve_discussions_spec.rb') diff --git a/spec/services/issues/resolve_discussions_spec.rb b/spec/services/issues/resolve_discussions_spec.rb index f12a3820b8d..ec6624db6fc 100644 --- a/spec/services/issues/resolve_discussions_spec.rb +++ b/spec/services/issues/resolve_discussions_spec.rb @@ -3,19 +3,20 @@ require 'spec_helper.rb' 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(:user) { create(:user) } 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) end -- cgit v1.2.1