diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-29 21:10:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-29 21:10:36 +0300 |
commit | 1bbd0179d7ed8fb17c0574aa74ef491e53c833a7 (patch) | |
tree | c74a9b9d8f7ad1cedb0995e10340820467a8ab6f /spec/graphql | |
parent | 4d3677a52dab1bb5c707ad493dcab8c8bca3dd8b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/graphql')
-rw-r--r-- | spec/graphql/types/project_type_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/graphql/types/project_type_spec.rb b/spec/graphql/types/project_type_spec.rb index bcfdb05ca90..262164a0821 100644 --- a/spec/graphql/types/project_type_spec.rb +++ b/spec/graphql/types/project_type_spec.rb @@ -909,6 +909,14 @@ RSpec.describe GitlabSchema.types['Project'] do 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 + let(:user) { nil } + + it 'does not return any forks' do + expect(forks.count).to eq(0) + end + end end end end |