diff options
author | Valery Sizov <valery@gitlab.com> | 2017-04-18 19:24:41 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2017-04-18 21:07:45 +0300 |
commit | 59a330f4cde708986b9112883b4d4f92b76e5c08 (patch) | |
tree | 1c7ef569ffe1a4b29bb0ae388ebdd47a7c9acfd1 /spec/services/members | |
parent | d910a777cc53a9d087ede3079522870631baec07 (diff) |
Remove assigned_(issues|merge_requests) methods from the issuable
Diffstat (limited to 'spec/services/members')
-rw-r--r-- | spec/services/members/authorized_destroy_service_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/services/members/authorized_destroy_service_spec.rb b/spec/services/members/authorized_destroy_service_spec.rb index 9912800da53..5cf2a4f656c 100644 --- a/spec/services/members/authorized_destroy_service_spec.rb +++ b/spec/services/members/authorized_destroy_service_spec.rb @@ -1,14 +1,13 @@ require 'spec_helper' describe Members::AuthorizedDestroyService, services: true do - let(:user) { create(:user) } let(:member_user) { create(:user) } let(:project) { create(:empty_project, :public) } let(:group) { create(:group, :public) } let(:group_project) { create(:empty_project, :public, group: group) } def number_of_assigned_issuables(user) - user.assigned_issues.count + user.assigned_merge_requests.count + Issue.assigned_to(user).count + MergeRequest.assigned_to(user).count end context 'Group member' do |