Commit 67ff702c authored by Abdul Wadood's avatar Abdul Wadood Committed by Markus Koller

Fix RSpec/EmptyLineAfterFinalLetItBe for ee/spec/services/merge_trains

parent 3bc07e26
...@@ -608,10 +608,6 @@ RSpec/EmptyLineAfterFinalLetItBe: ...@@ -608,10 +608,6 @@ RSpec/EmptyLineAfterFinalLetItBe:
- ee/spec/services/incident_management/incidents/upload_metric_service_spec.rb - ee/spec/services/incident_management/incidents/upload_metric_service_spec.rb
- ee/spec/services/incident_management/oncall_rotations/edit_service_spec.rb - ee/spec/services/incident_management/oncall_rotations/edit_service_spec.rb
- ee/spec/services/merge_request_approval_settings/update_service_spec.rb - ee/spec/services/merge_request_approval_settings/update_service_spec.rb
- ee/spec/services/merge_trains/check_status_service_spec.rb
- ee/spec/services/merge_trains/create_pipeline_service_spec.rb
- ee/spec/services/merge_trains/refresh_merge_request_service_spec.rb
- ee/spec/services/merge_trains/refresh_service_spec.rb
- ee/spec/services/personal_access_tokens/create_service_audit_log_spec.rb - ee/spec/services/personal_access_tokens/create_service_audit_log_spec.rb
- ee/spec/services/personal_access_tokens/groups/update_lifetime_service_spec.rb - ee/spec/services/personal_access_tokens/groups/update_lifetime_service_spec.rb
- ee/spec/services/projects/after_rename_service_spec.rb - ee/spec/services/projects/after_rename_service_spec.rb
......
---
title: Fix RSpec/EmptyLineAfterFinalLetItBe rubocop offenses in ee/spec/services/merge_trains
merge_request: 58333
author: Abdul Wadood @abdulwd
type: fixed
...@@ -5,6 +5,7 @@ require 'spec_helper' ...@@ -5,6 +5,7 @@ require 'spec_helper'
RSpec.describe MergeTrains::CheckStatusService do RSpec.describe MergeTrains::CheckStatusService do
let_it_be(:project) { create(:project, :repository, merge_pipelines_enabled: true, merge_trains_enabled: true) } let_it_be(:project) { create(:project, :repository, merge_pipelines_enabled: true, merge_trains_enabled: true) }
let_it_be(:maintainer) { create(:user).tap { |u| project.add_maintainer(u)} } let_it_be(:maintainer) { create(:user).tap { |u| project.add_maintainer(u)} }
let(:service) { described_class.new(project, maintainer) } let(:service) { described_class.new(project, maintainer) }
let(:previous_ref) { 'refs/heads/master' } let(:previous_ref) { 'refs/heads/master' }
......
...@@ -5,6 +5,7 @@ require 'spec_helper' ...@@ -5,6 +5,7 @@ require 'spec_helper'
RSpec.describe MergeTrains::CreatePipelineService do RSpec.describe MergeTrains::CreatePipelineService do
let_it_be(:project) { create(:project, :repository, :auto_devops, merge_pipelines_enabled: true, merge_trains_enabled: true) } let_it_be(:project) { create(:project, :repository, :auto_devops, merge_pipelines_enabled: true, merge_trains_enabled: true) }
let_it_be(:maintainer) { create(:user) } let_it_be(:maintainer) { create(:user) }
let(:service) { described_class.new(project, maintainer) } let(:service) { described_class.new(project, maintainer) }
let(:previous_ref) { 'refs/heads/master' } let(:previous_ref) { 'refs/heads/master' }
......
...@@ -5,6 +5,7 @@ require 'spec_helper' ...@@ -5,6 +5,7 @@ require 'spec_helper'
RSpec.describe MergeTrains::RefreshMergeRequestService do RSpec.describe MergeTrains::RefreshMergeRequestService do
let_it_be(:project) { create(:project, :repository, merge_pipelines_enabled: true, merge_trains_enabled: true) } let_it_be(:project) { create(:project, :repository, merge_pipelines_enabled: true, merge_trains_enabled: true) }
let_it_be(:maintainer) { create(:user) } let_it_be(:maintainer) { create(:user) }
let(:service) { described_class.new(project, maintainer, require_recreate: require_recreate) } let(:service) { described_class.new(project, maintainer, require_recreate: require_recreate) }
let(:require_recreate) { false } let(:require_recreate) { false }
......
...@@ -8,6 +8,7 @@ RSpec.describe MergeTrains::RefreshService do ...@@ -8,6 +8,7 @@ RSpec.describe MergeTrains::RefreshService do
let(:project) { create(:project) } let(:project) { create(:project) }
let_it_be(:maintainer_1) { create(:user) } let_it_be(:maintainer_1) { create(:user) }
let_it_be(:maintainer_2) { create(:user) } let_it_be(:maintainer_2) { create(:user) }
let(:service) { described_class.new(project, maintainer_1) } let(:service) { described_class.new(project, maintainer_1) }
before do 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