diff options
author | Valery Sizov <valery@gitlab.com> | 2017-04-19 18:17:46 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2017-04-20 13:28:04 +0300 |
commit | 36a8cc3eca62c28ff9001be9378f76b7d59a2f4d (patch) | |
tree | e572b7b46037171d8a7e154a43c04265d0e4c176 /spec/services/members | |
parent | 59a330f4cde708986b9112883b4d4f92b76e5c08 (diff) |
Remove helpers assigned_issuables_count and cached_assigned_issuables_count
Diffstat (limited to 'spec/services/members')
-rw-r--r-- | spec/services/members/authorized_destroy_service_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/services/members/authorized_destroy_service_spec.rb b/spec/services/members/authorized_destroy_service_spec.rb index 5cf2a4f656c..3b35a3b8e3a 100644 --- a/spec/services/members/authorized_destroy_service_spec.rb +++ b/spec/services/members/authorized_destroy_service_spec.rb @@ -21,8 +21,8 @@ describe Members::AuthorizedDestroyService, services: true do member = group.members.find_by(user_id: member_user.id) - expect{ described_class.new(member, member_user).execute } - .to change{ number_of_assigned_issuables(member_user) }.from(4).to(2) + expect { described_class.new(member, member_user).execute } + .to change { number_of_assigned_issuables(member_user) }.from(4).to(2) expect(issue.reload.assignee_id).to be_nil expect(merge_request.reload.assignee_id).to be_nil @@ -38,8 +38,8 @@ describe Members::AuthorizedDestroyService, services: true do member = project.members.find_by(user_id: member_user.id) - expect{ described_class.new(member, member_user).execute } - .to change{ number_of_assigned_issuables(member_user) }.from(2).to(0) + expect { described_class.new(member, member_user).execute } + .to change { number_of_assigned_issuables(member_user) }.from(2).to(0) end end end |