Commit 25ec415a authored by Huzaifa Iftikhar's avatar Huzaifa Iftikhar Committed by Matthias Käppler

Fix EmptyLineAfterFinalLetItBe offenses in spec/services/environments

parent cedcd442
...@@ -968,9 +968,6 @@ RSpec/EmptyLineAfterFinalLetItBe: ...@@ -968,9 +968,6 @@ RSpec/EmptyLineAfterFinalLetItBe:
- spec/services/design_management/save_designs_service_spec.rb - spec/services/design_management/save_designs_service_spec.rb
- spec/services/discussions/resolve_service_spec.rb - spec/services/discussions/resolve_service_spec.rb
- spec/services/discussions/unresolve_service_spec.rb - spec/services/discussions/unresolve_service_spec.rb
- spec/services/environments/auto_stop_service_spec.rb
- spec/services/environments/canary_ingress/update_service_spec.rb
- spec/services/environments/reset_auto_stop_service_spec.rb
- spec/services/feature_flags/create_service_spec.rb - spec/services/feature_flags/create_service_spec.rb
- spec/services/feature_flags/destroy_service_spec.rb - spec/services/feature_flags/destroy_service_spec.rb
- spec/services/feature_flags/disable_service_spec.rb - spec/services/feature_flags/disable_service_spec.rb
......
---
title: Fix EmptyLineAfterFinalLetItBe offenses in spec/services/environments
merge_request: 58418
author: Huzaifa Iftikhar @huzaifaiftikhar
type: fixed
...@@ -8,6 +8,7 @@ RSpec.describe Environments::AutoStopService, :clean_gitlab_redis_shared_state d ...@@ -8,6 +8,7 @@ RSpec.describe Environments::AutoStopService, :clean_gitlab_redis_shared_state d
let_it_be(:project) { create(:project, :repository) } let_it_be(:project) { create(:project, :repository) }
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
let(:service) { described_class.new } let(:service) { described_class.new }
before_all do before_all do
...@@ -19,6 +20,7 @@ RSpec.describe Environments::AutoStopService, :clean_gitlab_redis_shared_state d ...@@ -19,6 +20,7 @@ RSpec.describe Environments::AutoStopService, :clean_gitlab_redis_shared_state d
let_it_be(:project) { create(:project, :repository) } let_it_be(:project) { create(:project, :repository) }
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
let(:environments) { Environment.all } let(:environments) { Environment.all }
before_all do before_all do
......
...@@ -8,6 +8,7 @@ RSpec.describe Environments::CanaryIngress::UpdateService, :clean_gitlab_redis_c ...@@ -8,6 +8,7 @@ RSpec.describe Environments::CanaryIngress::UpdateService, :clean_gitlab_redis_c
let_it_be(:project, refind: true) { create(:project) } let_it_be(:project, refind: true) { create(:project) }
let_it_be(:maintainer) { create(:user) } let_it_be(:maintainer) { create(:user) }
let_it_be(:reporter) { create(:user) } let_it_be(:reporter) { create(:user) }
let(:user) { maintainer } let(:user) { maintainer }
let(:params) { {} } let(:params) { {} }
let(:service) { described_class.new(project, user, params) } let(:service) { described_class.new(project, user, params) }
......
...@@ -6,6 +6,7 @@ RSpec.describe Environments::ResetAutoStopService do ...@@ -6,6 +6,7 @@ RSpec.describe Environments::ResetAutoStopService do
let_it_be(:project) { create(:project) } let_it_be(:project) { create(:project) }
let_it_be(:developer) { create(:user).tap { |user| project.add_developer(user) } } let_it_be(:developer) { create(:user).tap { |user| project.add_developer(user) } }
let_it_be(:reporter) { create(:user).tap { |user| project.add_reporter(user) } } let_it_be(:reporter) { create(:user).tap { |user| project.add_reporter(user) } }
let(:user) { developer } let(:user) { developer }
let(:service) { described_class.new(project, user) } let(:service) { described_class.new(project, user) }
......
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