Commit f9631484 authored by Dylan Griffith's avatar Dylan Griffith

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

Fix RSpec/EmptyLineAfterFinalLetItBe for ee/spec/support

See merge request gitlab-org/gitlab!58292
parents e81300e7 601e58b2
......@@ -520,10 +520,6 @@ RSpec/EmptyLineAfterFinalLetItBe:
- ee/spec/services/requirements_management/update_requirement_service_spec.rb
- ee/spec/services/resource_access_tokens/create_service_spec.rb
- ee/spec/services/resource_access_tokens/revoke_service_spec.rb
- ee/spec/support/shared_examples/graphql/geo/geo_registries_resolver_shared_examples.rb
- ee/spec/support/shared_examples/graphql/mutations/set_multiple_assignees_shared_examples.rb
- ee/spec/support/shared_examples/quick_actions/issue/status_page_quick_actions_shared_examples.rb
- ee/spec/support/shared_examples/services/search_notes_shared_examples.rb
- spec/controllers/confirmations_controller_spec.rb
- spec/controllers/dashboard/projects_controller_spec.rb
- spec/controllers/invites_controller_spec.rb
......
---
title: Fix RSpec/EmptyLineAfterFinalLetItBe rubocop offenses in ee/spec/support
merge_request: 58292
author: Abdul Wadood @abdulwd
type: fixed
......@@ -11,6 +11,7 @@ RSpec.shared_examples_for 'a Geo registries resolver' do |registry_factory_name|
let_it_be(:registry2) { create(registry_factory_name) }
let_it_be(:registry3) { create(registry_factory_name) }
# rubocop:enable Rails/SaveBang
let(:registries) { [registry1, registry2, registry3] }
let(:gql_context) { { current_user: current_user } }
......
......@@ -3,6 +3,7 @@
RSpec.shared_examples 'search notes shared examples' do
context 'notes confidentiality', :elastic, :sidekiq_inline do
let_it_be(:user) { create(:user) }
let(:commit_id) { noteable.is_a?(Commit) ? noteable.id : nil }
let(:noteable_id) { noteable.is_a?(Issuable) ? noteable.id : nil }
let!(:not_confidential_note) { create(:note, confidential: false, noteable_id: noteable_id, commit_id: commit_id, noteable_type: noteable.class.name, project: noteable.project, note: 'note 1') }
......
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