diff options
Diffstat (limited to 'spec/requests/api/graphql/gitlab_schema_spec.rb')
-rw-r--r-- | spec/requests/api/graphql/gitlab_schema_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/requests/api/graphql/gitlab_schema_spec.rb b/spec/requests/api/graphql/gitlab_schema_spec.rb index d55a70f503c..060a1b42cb6 100644 --- a/spec/requests/api/graphql/gitlab_schema_spec.rb +++ b/spec/requests/api/graphql/gitlab_schema_spec.rb @@ -113,7 +113,7 @@ RSpec.describe 'GitlabSchema configurations', feature_category: :integrations do context 'regular queries' do subject do - query = graphql_query_for('project', { 'fullPath' => project.full_path }, %w(id name description)) + query = graphql_query_for('project', { 'fullPath' => project.full_path }, %w[id name description]) post_graphql(query) end @@ -125,7 +125,7 @@ RSpec.describe 'GitlabSchema configurations', feature_category: :integrations do subject do queries = [ - { query: graphql_query_for('project', { 'fullPath' => '$fullPath' }, %w(id name description)) }, # Complexity 4 + { query: graphql_query_for('project', { 'fullPath' => '$fullPath' }, %w[id name description]) }, # Complexity 4 { query: graphql_query_for('echo', { 'text' => "$test" }, []), variables: { "test" => "Hello world" } }, # Complexity 1 { query: graphql_query_for('project', { 'fullPath' => project.full_path }, "userPermissions { createIssue }") } # Complexity 3 ] @@ -215,7 +215,7 @@ RSpec.describe 'GitlabSchema configurations', feature_category: :integrations do context "global id's" do it 'uses GlobalID to expose ids' do - post_graphql(graphql_query_for('project', { 'fullPath' => project.full_path }, %w(id)), + post_graphql(graphql_query_for('project', { 'fullPath' => project.full_path }, %w[id]), current_user: project.first_owner) parsed_id = GlobalID.parse(graphql_data['project']['id']) |