diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2017-05-30 00:35:29 +0200 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2017-05-30 00:35:29 +0200 |
commit | bef4879ecc68cbadbb2e13e0446e4258ff594a1e (patch) | |
tree | 2bd0bc4d4adb32b52d6468e4e0deb341de0bd04c /spec | |
parent | 9dfecec53d907a8beb6c2f119d6688aa92c959fd (diff) | |
download | gitlab-ce-bef4879ecc68cbadbb2e13e0446e4258ff594a1e.tar.gz |
Fix spec for Members::AuthorizedDestroyServicefix-authorized-members-destroy
This spec was still assuming that creating a project would not result in
the owner having access to the project.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/services/members/authorized_destroy_service_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/members/authorized_destroy_service_spec.rb b/spec/services/members/authorized_destroy_service_spec.rb index 8a6732faa19..f99b11f208c 100644 --- a/spec/services/members/authorized_destroy_service_spec.rb +++ b/spec/services/members/authorized_destroy_service_spec.rb @@ -18,7 +18,7 @@ describe Members::AuthorizedDestroyService, services: true do member = create :project_member, :invited, project: project expect { described_class.new(member, member_user).execute } - .to change { Member.count }.from(2).to(1) + .to change { Member.count }.from(3).to(2) end it 'destroys invited group member' do |