diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-20 14:18:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-20 14:18:08 +0300 |
commit | 5afcbe03ead9ada87621888a31a62652b10a7e4f (patch) | |
tree | 9918b67a0d0f0bafa6542e839a8be37adf73102d /spec/graphql/types/project_type_spec.rb | |
parent | c97c0201564848c1f53226fe19d71fdcc472f7d0 (diff) |
Add latest changes from gitlab-org/gitlab@16-4-stable-eev16.4.0-rc42
Diffstat (limited to 'spec/graphql/types/project_type_spec.rb')
-rw-r--r-- | spec/graphql/types/project_type_spec.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/spec/graphql/types/project_type_spec.rb b/spec/graphql/types/project_type_spec.rb index cd9a0642ae6..a20a4767bb5 100644 --- a/spec/graphql/types/project_type_spec.rb +++ b/spec/graphql/types/project_type_spec.rb @@ -892,22 +892,25 @@ RSpec.describe GitlabSchema.types['Project'] do subject { GitlabSchema.execute(query, context: { current_user: user }).as_json } - before do + before_all do fork_reporter.add_reporter(user) fork_developer.add_developer(user) fork_group_developer.group.add_developer(user) + fork_private.update!(visibility_level: Gitlab::VisibilityLevel::PRIVATE) end it 'contains all forks' do - expect(forks.count).to eq(5) + expect(forks.count).to eq(4) end context 'with minimum_access_level DEVELOPER' do let(:minimum_access_level) { '(minimumAccessLevel: DEVELOPER)' } it 'contains forks with developer access' do - expect(forks).to contain_exactly(a_hash_including('fullPath' => fork_developer.full_path), -a_hash_including('fullPath' => fork_group_developer.full_path)) + expect(forks).to contain_exactly( + a_hash_including('fullPath' => fork_developer.full_path), + a_hash_including('fullPath' => fork_group_developer.full_path) + ) end context 'when current user is not set' do |