Commit 11b46233 authored by Peter Leitzen's avatar Peter Leitzen

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

Fix RSpec/EmptyLineAfterFinalLetItBe for ee/spec/mailers

See merge request gitlab-org/gitlab!58379
parents 7a459b7c e0c75799
......@@ -566,9 +566,6 @@ RSpec/EmptyLineAfterFinalLetItBe:
- ee/spec/lib/gitlab/graphql/aggregations/vulnerability_statistics/lazy_aggregate_spec.rb
- ee/spec/lib/gitlab/insights/project_insights_config_spec.rb
- ee/spec/lib/gitlab/sitemaps/url_extractor_spec.rb
- ee/spec/mailers/credentials_inventory_mailer_spec.rb
- ee/spec/mailers/ee/emails/profile_spec.rb
- ee/spec/mailers/notify_spec.rb
- ee/spec/migrations/backfill_version_author_and_created_at_spec.rb
- ee/spec/models/analytics/cycle_analytics/group_level_spec.rb
- ee/spec/models/burndown_spec.rb
......
---
title: Fix RSpec/EmptyLineAfterFinalLetItBe rubocop offenses in ee/spec/mailers
merge_request: 58379
author: Abdul Wadood @abdulwd
type: fixed
......@@ -23,6 +23,7 @@ RSpec.describe CredentialsInventoryMailer do
describe '#ssh_key_deleted_email' do
let_it_be(:ssh_key) { create(:personal_key, last_used_at: 3.weeks.ago) }
let(:params) do
{
notification_email: ssh_key.user.notification_email,
......
......@@ -8,6 +8,7 @@ RSpec.describe EE::Emails::Profile do
describe '#policy_revoked_personal_access_tokens_email' do
let_it_be(:user) { create(:user) }
let(:token_names) { %w(name1 name2) }
subject { Notify.policy_revoked_personal_access_tokens_email(user, token_names) }
......
......@@ -267,6 +267,7 @@ RSpec.describe Notify do
context 'for epic notes' do
let_it_be(:note) { create(:note, project: nil, noteable: epic) }
let(:note_author) { note.author }
subject { described_class.note_epic_email(recipient.id, note.id) }
......
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