Commit 09f1f5ce authored by James Lopez's avatar James Lopez

Merge branch 'issue#325836-fix-empty-line-after-let-it-be-graphql-types' into 'master'

Fix EmptyLineAfterFinalLetItBe offenses in spec/graphql/types

See merge request gitlab-org/gitlab!58241
parents 0177965e 1f1339af
......@@ -719,9 +719,6 @@ RSpec/EmptyLineAfterFinalLetItBe:
- spec/graphql/resolvers/project_pipeline_resolver_spec.rb
- spec/graphql/resolvers/project_pipelines_resolver_spec.rb
- spec/graphql/resolvers/timelog_resolver_spec.rb
- spec/graphql/types/admin/analytics/usage_trends/measurement_type_spec.rb
- spec/graphql/types/global_id_type_spec.rb
- spec/graphql/types/snippet_type_spec.rb
- spec/helpers/blob_helper_spec.rb
- spec/helpers/broadcast_messages_helper_spec.rb
- spec/helpers/ci/runners_helper_spec.rb
......
---
title: Fix EmptyLineAfterFinalLetItBe offenses in spec/graphql/types
merge_request: 58241
author: Huzaifa Iftikhar @huzaifaiftikhar
type: fixed
......@@ -11,6 +11,7 @@ RSpec.describe GitlabSchema.types['UsageTrendsMeasurement'] do
describe 'authorization' do
let_it_be(:measurement) { create(:usage_trends_measurement, :project_count) }
let(:user) { create(:user) }
let(:query) do
......
......@@ -4,6 +4,7 @@ require 'spec_helper'
RSpec.describe Types::GlobalIDType do
let_it_be(:project) { create(:project) }
let(:gid) { project.to_global_id }
it 'is has the correct name' do
......
......@@ -161,6 +161,7 @@ RSpec.describe GitlabSchema.types['Snippet'] do
describe '#blobs' do
let_it_be(:snippet) { create(:personal_snippet, :public, author: user) }
let(:query_blobs) { subject.dig('data', 'snippets', 'nodes')[0].dig('blobs', 'nodes') }
let(:paths) { [] }
let(:query) do
......@@ -201,6 +202,7 @@ RSpec.describe GitlabSchema.types['Snippet'] do
context 'when snippet has repository' do
let_it_be(:snippet) { create(:personal_snippet, :repository, :public, author: user) }
let(:blobs) { snippet.blobs }
it_behaves_like 'an array'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment