Commit 39d4ac44 authored by Abdul Wadood's avatar Abdul Wadood

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

Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/325836
parent 91f693bb
...@@ -491,10 +491,6 @@ RSpec/EmptyLineAfterFinalLetItBe: ...@@ -491,10 +491,6 @@ RSpec/EmptyLineAfterFinalLetItBe:
- ee/spec/graphql/mutations/issues/set_epic_spec.rb - ee/spec/graphql/mutations/issues/set_epic_spec.rb
- ee/spec/graphql/mutations/requirements_management/export_requirements_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/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/graphql/types/issue_type_spec.rb
- ee/spec/helpers/ee/graph_helper_spec.rb - ee/spec/helpers/ee/graph_helper_spec.rb
- ee/spec/helpers/ee/issues_helper_spec.rb - ee/spec/helpers/ee/issues_helper_spec.rb
......
...@@ -13,6 +13,7 @@ RSpec.describe Resolvers::Ci::CodeCoverageActivitiesResolver do ...@@ -13,6 +13,7 @@ RSpec.describe Resolvers::Ci::CodeCoverageActivitiesResolver do
let_it_be(:project_1) { create(:project) } let_it_be(:project_1) { create(:project) }
let_it_be(:project_2) { create(:project) } let_it_be(:project_2) { create(:project) }
let_it_be(:group) { create(:group, projects: [project_1, project_2]) } let_it_be(:group) { create(:group, projects: [project_1, project_2]) }
let(:start_date) { 1.day.ago.to_date.to_s } let(:start_date) { 1.day.ago.to_date.to_s }
context 'when group has projects with coverage' do context 'when group has projects with coverage' do
......
...@@ -10,6 +10,7 @@ RSpec.describe Resolvers::EpicsResolver do ...@@ -10,6 +10,7 @@ RSpec.describe Resolvers::EpicsResolver do
context "with a group" do context "with a group" do
let_it_be_with_refind(:group) { create(:group) } let_it_be_with_refind(:group) { create(:group) }
let(:project) { create(:project, :public, group: 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(: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) } 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 ...@@ -10,6 +10,7 @@ RSpec.describe Resolvers::Geo::GeoNodeResolver do
let_it_be(:primary) { create(:geo_node, :primary) } let_it_be(:primary) { create(:geo_node, :primary) }
let_it_be(:secondary) { create(:geo_node) } let_it_be(:secondary) { create(:geo_node) }
let_it_be(:user) { create(:user, :admin) } let_it_be(:user) { create(:user, :admin) }
let(:gql_context) { { current_user: user } } let(:gql_context) { { current_user: user } }
context 'when the user has permission to view Geo data', :enable_admin_mode do context 'when the user has permission to view Geo data', :enable_admin_mode do
......
...@@ -8,6 +8,7 @@ RSpec.describe Resolvers::IncidentManagement::OncallShiftsResolver do ...@@ -8,6 +8,7 @@ RSpec.describe Resolvers::IncidentManagement::OncallShiftsResolver do
let_it_be(:current_user) { create(:user) } let_it_be(:current_user) { create(:user) }
let_it_be(:rotation) { create(:incident_management_oncall_rotation, :with_participants, :utc) } let_it_be(:rotation) { create(:incident_management_oncall_rotation, :with_participants, :utc) }
let_it_be(:project) { rotation.project } let_it_be(:project) { rotation.project }
let(:args) { { start_time: rotation.starts_at, end_time: rotation.starts_at + rotation.shift_cycle_duration } } 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) } 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