spec/features/projects/members/member_is_removed_from_project_spec.rb is not a good feature spec
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Seen in https://gitlab.com/gitlab-org/gitlab-ee/builds/17983137.
This feature spec is testing underlying models:
expect(project.users.exists?(user.id)).to be_falsey
expect(matching_protected_branch.push_access_levels.where(user: user)).not_to exist
expect(matching_protected_branch.merge_access_levels.where(user: user)).not_to exist
expect(non_matching_protected_branch.push_access_levels.where(user: other_user)).to exist
expect(non_matching_protected_branch.merge_access_levels.where(user: other_user)).to exist
Also, it's present in EE only.
Edited by 🤖 GitLab Bot 🤖