Commit 08846bbe authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'rspec-empty-line-after-letitbe-ee-spec-graphql-resolvers' into 'master'

Fix RSpec/EmptyLineAfterFinalLetItBe for ee/spec/graphql/resolvers

See merge request gitlab-org/gitlab!58389
parents 53ddde1c 0b44403a
......@@ -491,10 +491,6 @@ RSpec/EmptyLineAfterFinalLetItBe:
- ee/spec/graphql/mutations/issues/set_epic_spec.rb
- ee/spec/graphql/mutations/requirements_management/export_requirements_spec.rb
- ee/spec/graphql/mutations/vulnerabilities/create_external_issue_link_spec.rb
- ee/spec/graphql/resolvers/ci/code_coverage_activities_resolver_spec.rb
- ee/spec/graphql/resolvers/epics_resolver_spec.rb
- ee/spec/graphql/resolvers/geo/geo_node_resolver_spec.rb
- ee/spec/graphql/resolvers/incident_management/oncall_shifts_resolver_spec.rb
- ee/spec/graphql/types/issue_type_spec.rb
- ee/spec/helpers/ee/graph_helper_spec.rb
- ee/spec/helpers/ee/issues_helper_spec.rb
......
---
title: Fix RSpec/EmptyLineAfterFinalLetItBe rubocop offenses in ee/spec/graphsql/resolvers
merge_request: 58389
author: Abdul Wadood @abdulwd
type: fixed
......@@ -13,6 +13,7 @@ RSpec.describe Resolvers::Ci::CodeCoverageActivitiesResolver do
let_it_be(:project_1) { create(:project) }
let_it_be(:project_2) { create(:project) }
let_it_be(:group) { create(:group, projects: [project_1, project_2]) }
let(:start_date) { 1.day.ago.to_date.to_s }
context 'when group has projects with coverage' do
......
......@@ -10,6 +10,7 @@ RSpec.describe Resolvers::EpicsResolver do
context "with a group" do
let_it_be_with_refind(:group) { create(:group) }
let(:project) { create(:project, :public, group: group) }
let(:epic1) { create(:epic, group: group, state: :closed, created_at: 3.days.ago, updated_at: 2.days.ago) }
let(:epic2) { create(:epic, group: group, author: user2, title: 'foo', description: 'bar', created_at: 2.days.ago, updated_at: 3.days.ago) }
......
......@@ -10,6 +10,7 @@ RSpec.describe Resolvers::Geo::GeoNodeResolver do
let_it_be(:primary) { create(:geo_node, :primary) }
let_it_be(:secondary) { create(:geo_node) }
let_it_be(:user) { create(:user, :admin) }
let(:gql_context) { { current_user: user } }
context 'when the user has permission to view Geo data', :enable_admin_mode do
......
......@@ -8,6 +8,7 @@ RSpec.describe Resolvers::IncidentManagement::OncallShiftsResolver do
let_it_be(:current_user) { create(:user) }
let_it_be(:rotation) { create(:incident_management_oncall_rotation, :with_participants, :utc) }
let_it_be(:project) { rotation.project }
let(:args) { { start_time: rotation.starts_at, end_time: rotation.starts_at + rotation.shift_cycle_duration } }
subject(:shifts) { sync(resolve_oncall_shifts(args).to_a) }
......
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