Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/graphql/types/merge_requests/reviewer_type_spec.rb')
-rw-r--r--spec/graphql/types/merge_requests/reviewer_type_spec.rb48
1 files changed, 1 insertions, 47 deletions
diff --git a/spec/graphql/types/merge_requests/reviewer_type_spec.rb b/spec/graphql/types/merge_requests/reviewer_type_spec.rb
index 4d357a922f8..92cb51df27a 100644
--- a/spec/graphql/types/merge_requests/reviewer_type_spec.rb
+++ b/spec/graphql/types/merge_requests/reviewer_type_spec.rb
@@ -3,51 +3,5 @@
require 'spec_helper'
RSpec.describe GitlabSchema.types['MergeRequestReviewer'] do
- specify { expect(described_class).to require_graphql_authorizations(:read_user) }
-
- it 'has the expected fields' do
- expected_fields = %w[
- id
- bot
- user_permissions
- snippets
- name
- username
- email
- publicEmail
- avatarUrl
- webUrl
- webPath
- todos
- state
- status
- location
- authoredMergeRequests
- assignedMergeRequests
- reviewRequestedMergeRequests
- groupMemberships
- groupCount
- projectMemberships
- starredProjects
- callouts
- merge_request_interaction
- namespace
- timelogs
- groups
- ]
-
- expect(described_class).to have_graphql_fields(*expected_fields)
- end
-
- describe '#merge_request_interaction' do
- subject { described_class.fields['mergeRequestInteraction'] }
-
- it 'returns the correct type' do
- is_expected.to have_graphql_type(Types::UserMergeRequestInteractionType)
- end
-
- it 'has the correct arguments' do
- is_expected.to have_attributes(arguments: be_empty)
- end
- end
+ it_behaves_like "a user type with merge request interaction type"
end