Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2274a11f
Commit
2274a11f
authored
Apr 23, 2021
by
Abdul Wadood
Committed by
Dylan Griffith
Apr 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix RSpec/EmptyLineAfterFinalLetItBe for ee/spec/lib/gitlab/elastic
parent
3bc07e26
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
3 deletions
+9
-3
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-3
ee/changelogs/unreleased/rspec-empty-lines-after-letitbe-ee-spec-lib-gitlab-elastic.yml
...-empty-lines-after-letitbe-ee-spec-lib-gitlab-elastic.yml
+5
-0
ee/spec/lib/gitlab/elastic/document_reference_spec.rb
ee/spec/lib/gitlab/elastic/document_reference_spec.rb
+1
-0
ee/spec/lib/gitlab/elastic/group_search_results_spec.rb
ee/spec/lib/gitlab/elastic/group_search_results_spec.rb
+1
-0
ee/spec/lib/gitlab/elastic/project_search_results_spec.rb
ee/spec/lib/gitlab/elastic/project_search_results_spec.rb
+2
-0
No files found.
.rubocop_manual_todo.yml
View file @
2274a11f
...
...
@@ -503,9 +503,6 @@ RSpec/EmptyLineAfterFinalLetItBe:
-
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/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_wiki_spec.rb
-
ee/spec/lib/gitlab/graphql/aggregations/vulnerability_statistics/lazy_aggregate_spec.rb
...
...
ee/changelogs/unreleased/rspec-empty-lines-after-letitbe-ee-spec-lib-gitlab-elastic.yml
0 → 100644
View file @
2274a11f
---
title
:
Fix RSpec/EmptyLineAfterFinalLetItBe rubocop offenses in ee/spec/lib/gitlab/elastic
merge_request
:
58381
author
:
Abdul Wadood @abdulwd
type
:
fixed
ee/spec/lib/gitlab/elastic/document_reference_spec.rb
View file @
2274a11f
...
...
@@ -4,6 +4,7 @@ require 'spec_helper'
RSpec
.
describe
Gitlab
::
Elastic
::
DocumentReference
do
let_it_be
(
:issue
)
{
create
(
:issue
)
}
let
(
:project
)
{
issue
.
project
}
let
(
:issue_as_array
)
{
[
Issue
,
issue
.
id
,
issue
.
es_id
,
issue
.
es_parent
]
}
...
...
ee/spec/lib/gitlab/elastic/group_search_results_spec.rb
View file @
2274a11f
...
...
@@ -6,6 +6,7 @@ RSpec.describe Gitlab::Elastic::GroupSearchResults, :elastic do
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:group
)
{
create
(
:group
)
}
let_it_be
(
:guest
)
{
create
(
:user
).
tap
{
|
u
|
group
.
add_user
(
u
,
Gitlab
::
Access
::
GUEST
)
}
}
let
(
:filters
)
{
{}
}
let
(
:query
)
{
'*'
}
...
...
ee/spec/lib/gitlab/elastic/project_search_results_spec.rb
View file @
2274a11f
...
...
@@ -5,6 +5,7 @@ require 'spec_helper'
RSpec
.
describe
Gitlab
::
Elastic
::
ProjectSearchResults
,
:elastic
do
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let
(
:query
)
{
'hello world'
}
let
(
:repository_ref
)
{
nil
}
let
(
:filters
)
{
{}
}
...
...
@@ -58,6 +59,7 @@ RSpec.describe Gitlab::Elastic::ProjectSearchResults, :elastic do
context
'visibility checks'
do
let_it_be
(
:project
)
{
create
(
:project
,
:public
,
:wiki_repo
)
}
let
(
:query
)
{
'term'
}
before
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment