Commit 2274a11f authored by Abdul Wadood's avatar Abdul Wadood Committed by Dylan Griffith

Fix RSpec/EmptyLineAfterFinalLetItBe for ee/spec/lib/gitlab/elastic

parent 3bc07e26
...@@ -503,9 +503,6 @@ RSpec/EmptyLineAfterFinalLetItBe: ...@@ -503,9 +503,6 @@ RSpec/EmptyLineAfterFinalLetItBe:
- ee/spec/lib/gitlab/analytics/cycle_analytics/summary/group/stage_time_summary_spec.rb - ee/spec/lib/gitlab/analytics/cycle_analytics/summary/group/stage_time_summary_spec.rb
- ee/spec/lib/gitlab/checks/diff_check_spec.rb - ee/spec/lib/gitlab/checks/diff_check_spec.rb
- ee/spec/lib/gitlab/code_owners/loader_spec.rb - ee/spec/lib/gitlab/code_owners/loader_spec.rb
- ee/spec/lib/gitlab/elastic/document_reference_spec.rb
- ee/spec/lib/gitlab/elastic/group_search_results_spec.rb
- ee/spec/lib/gitlab/elastic/project_search_results_spec.rb
- ee/spec/lib/gitlab/git_access_spec.rb - ee/spec/lib/gitlab/git_access_spec.rb
- ee/spec/lib/gitlab/git_access_wiki_spec.rb - ee/spec/lib/gitlab/git_access_wiki_spec.rb
- ee/spec/lib/gitlab/graphql/aggregations/vulnerability_statistics/lazy_aggregate_spec.rb - ee/spec/lib/gitlab/graphql/aggregations/vulnerability_statistics/lazy_aggregate_spec.rb
......
---
title: Fix RSpec/EmptyLineAfterFinalLetItBe rubocop offenses in ee/spec/lib/gitlab/elastic
merge_request: 58381
author: Abdul Wadood @abdulwd
type: fixed
...@@ -4,6 +4,7 @@ require 'spec_helper' ...@@ -4,6 +4,7 @@ require 'spec_helper'
RSpec.describe Gitlab::Elastic::DocumentReference do RSpec.describe Gitlab::Elastic::DocumentReference do
let_it_be(:issue) { create(:issue) } let_it_be(:issue) { create(:issue) }
let(:project) { issue.project } let(:project) { issue.project }
let(:issue_as_array) { [Issue, issue.id, issue.es_id, issue.es_parent] } let(:issue_as_array) { [Issue, issue.id, issue.es_id, issue.es_parent] }
......
...@@ -6,6 +6,7 @@ RSpec.describe Gitlab::Elastic::GroupSearchResults, :elastic do ...@@ -6,6 +6,7 @@ RSpec.describe Gitlab::Elastic::GroupSearchResults, :elastic do
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
let_it_be(:group) { create(:group) } let_it_be(:group) { create(:group) }
let_it_be(:guest) { create(:user).tap { |u| group.add_user(u, Gitlab::Access::GUEST) } } let_it_be(:guest) { create(:user).tap { |u| group.add_user(u, Gitlab::Access::GUEST) } }
let(:filters) { {} } let(:filters) { {} }
let(:query) { '*' } let(:query) { '*' }
......
...@@ -5,6 +5,7 @@ require 'spec_helper' ...@@ -5,6 +5,7 @@ require 'spec_helper'
RSpec.describe Gitlab::Elastic::ProjectSearchResults, :elastic do RSpec.describe Gitlab::Elastic::ProjectSearchResults, :elastic do
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
let_it_be(:project) { create(:project, :public, :repository) } let_it_be(:project) { create(:project, :public, :repository) }
let(:query) { 'hello world' } let(:query) { 'hello world' }
let(:repository_ref) { nil } let(:repository_ref) { nil }
let(:filters) { {} } let(:filters) { {} }
...@@ -58,6 +59,7 @@ RSpec.describe Gitlab::Elastic::ProjectSearchResults, :elastic do ...@@ -58,6 +59,7 @@ RSpec.describe Gitlab::Elastic::ProjectSearchResults, :elastic do
context 'visibility checks' do context 'visibility checks' do
let_it_be(:project) { create(:project, :public, :wiki_repo) } let_it_be(:project) { create(:project, :public, :wiki_repo) }
let(:query) { 'term' } let(:query) { 'term' }
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