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/user_type_spec.rb')
-rw-r--r--spec/graphql/types/user_type_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/graphql/types/user_type_spec.rb b/spec/graphql/types/user_type_spec.rb
index d9e67ff348b..7d73727b041 100644
--- a/spec/graphql/types/user_type_spec.rb
+++ b/spec/graphql/types/user_type_spec.rb
@@ -5,7 +5,11 @@ require 'spec_helper'
RSpec.describe GitlabSchema.types['User'] do
specify { expect(described_class.graphql_name).to eq('User') }
- specify { expect(described_class).to require_graphql_authorizations(:read_user) }
+ specify do
+ runtime_type = described_class.resolve_type(build(:user), {})
+
+ expect(runtime_type).to require_graphql_authorizations(:read_user)
+ end
it 'has the expected fields' do
expected_fields = %w[