Commit 2192eb0a authored by James Fargher's avatar James Fargher

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

Fix EmptyLineAfterFinalLetItBe offenses in spec/graphql/resolvers

See merge request gitlab-org/gitlab!58239
parents 0e7472e2 f387d262
......@@ -636,17 +636,6 @@ RSpec/EmptyLineAfterFinalLetItBe:
- spec/graphql/mutations/issues/set_severity_spec.rb
- spec/graphql/mutations/labels/create_spec.rb
- spec/graphql/mutations/notes/reposition_image_diff_note_spec.rb
- spec/graphql/resolvers/admin/analytics/usage_trends/measurements_resolver_spec.rb
- spec/graphql/resolvers/alert_management/alert_status_counts_resolver_spec.rb
- spec/graphql/resolvers/branch_commit_resolver_spec.rb
- spec/graphql/resolvers/design_management/designs_resolver_spec.rb
- spec/graphql/resolvers/design_management/version/designs_at_version_resolver_spec.rb
- spec/graphql/resolvers/group_milestones_resolver_spec.rb
- spec/graphql/resolvers/merge_request_pipelines_resolver_spec.rb
- spec/graphql/resolvers/metrics/dashboards/annotation_resolver_spec.rb
- spec/graphql/resolvers/project_pipeline_resolver_spec.rb
- spec/graphql/resolvers/project_pipelines_resolver_spec.rb
- spec/graphql/resolvers/timelog_resolver_spec.rb
- spec/lib/bulk_imports/groups/loaders/group_loader_spec.rb
- spec/lib/extracts_path_spec.rb
- spec/lib/extracts_ref_spec.rb
......
---
title: Fix EmptyLineAfterFinalLetItBe offenses in spec/graphql/resolvers
merge_request: 58239
author: Huzaifa Iftikhar @huzaifaiftikhar
type: fixed
......@@ -6,6 +6,7 @@ RSpec.describe Resolvers::Admin::Analytics::UsageTrends::MeasurementsResolver do
include GraphqlHelpers
let_it_be(:admin_user) { create(:user, :admin) }
let(:current_user) { admin_user }
describe '#resolve' do
......
......@@ -8,6 +8,7 @@ RSpec.describe Resolvers::AlertManagement::AlertStatusCountsResolver do
describe '#resolve' do
let_it_be(:current_user) { create(:user) }
let_it_be(:project) { create(:project) }
let(:args) { {} }
subject { resolve_alert_status_counts(args) }
......
......@@ -8,6 +8,7 @@ RSpec.describe Resolvers::BranchCommitResolver do
subject(:commit) { resolve(described_class, obj: branch) }
let_it_be(:repository) { create(:project, :repository).repository }
let(:branch) { repository.find_branch('master') }
describe '#resolve' do
......
......@@ -20,6 +20,7 @@ RSpec.describe Resolvers::DesignManagement::DesignsResolver do
let_it_be(:first_version) { create(:design_version) }
let_it_be(:first_design) { create(:design, issue: issue, versions: [first_version]) }
let_it_be(:current_user) { create(:user) }
let(:gql_context) { { current_user: current_user } }
let(:args) { {} }
......
......@@ -8,6 +8,7 @@ RSpec.describe Resolvers::DesignManagement::Version::DesignsAtVersionResolver do
include_context 'four designs in three versions'
let_it_be(:current_user) { authorized_user }
let(:gql_context) { { current_user: current_user } }
let(:version) { third_version }
......
......@@ -119,6 +119,7 @@ RSpec.describe Resolvers::GroupMilestonesResolver do
context 'when including descendant milestones in a public group' do
let_it_be(:group) { create(:group, :public) }
let(:args) { { include_descendants: true } }
it 'finds milestones only in accessible projects and groups' do
......
......@@ -17,6 +17,7 @@ RSpec.describe Resolvers::MergeRequestPipelinesResolver do
let_it_be(:other_project_pipeline) { create(:ci_pipeline, project: merge_request.source_project, ref: 'other-ref') }
let_it_be(:other_pipeline) { create(:ci_pipeline) }
let(:current_user) { create(:user) }
before do
......
......@@ -12,6 +12,7 @@ RSpec.describe Resolvers::Metrics::Dashboards::AnnotationResolver do
let_it_be(:current_user) { create(:user) }
let_it_be(:environment) { create(:environment) }
let_it_be(:path) { 'config/prometheus/common_metrics.yml' }
let(:dashboard) { PerformanceMonitoring::PrometheusDashboard.new(path: path, environment: environment) }
let(:args) do
{
......
......@@ -9,6 +9,7 @@ RSpec.describe Resolvers::ProjectPipelineResolver do
let_it_be(:pipeline) { create(:ci_pipeline, project: project, iid: '1234', sha: 'sha') }
let_it_be(:other_project_pipeline) { create(:ci_pipeline, project: project, iid: '1235', sha: 'sha2') }
let_it_be(:other_pipeline) { create(:ci_pipeline) }
let(:current_user) { create(:user) }
specify do
......
......@@ -8,6 +8,7 @@ RSpec.describe Resolvers::ProjectPipelinesResolver do
let_it_be(:project) { create(:project) }
let_it_be(:pipeline) { create(:ci_pipeline, project: project) }
let_it_be(:other_pipeline) { create(:ci_pipeline) }
let(:current_user) { create(:user) }
before do
......
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