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
b435c8b3
Commit
b435c8b3
authored
Apr 07, 2021
by
Abdul Wadood
Committed by
Mayra Cabrera
Apr 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix RSpec/EmptyLineAfterFinalLetItBe for ee/spec/serializers
parent
f69bcd39
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
16 additions
and
11 deletions
+16
-11
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-11
ee/changelogs/unreleased/rspec-empty-lines-after-letitbe-ee-spec-serializers.yml
...d/rspec-empty-lines-after-letitbe-ee-spec-serializers.yml
+5
-0
ee/spec/serializers/clusters/environment_serializer_spec.rb
ee/spec/serializers/clusters/environment_serializer_spec.rb
+1
-0
ee/spec/serializers/dependency_entity_spec.rb
ee/spec/serializers/dependency_entity_spec.rb
+1
-0
ee/spec/serializers/dependency_list_serializer_spec.rb
ee/spec/serializers/dependency_list_serializer_spec.rb
+1
-0
ee/spec/serializers/ee/issue_board_entity_spec.rb
ee/spec/serializers/ee/issue_board_entity_spec.rb
+1
-0
ee/spec/serializers/ee/issue_entity_spec.rb
ee/spec/serializers/ee/issue_entity_spec.rb
+1
-0
ee/spec/serializers/ee/issue_sidebar_extras_entity_spec.rb
ee/spec/serializers/ee/issue_sidebar_extras_entity_spec.rb
+1
-0
ee/spec/serializers/member_entity_spec.rb
ee/spec/serializers/member_entity_spec.rb
+1
-0
ee/spec/serializers/merge_request_poll_widget_entity_spec.rb
ee/spec/serializers/merge_request_poll_widget_entity_spec.rb
+1
-0
ee/spec/serializers/merge_request_widget_entity_spec.rb
ee/spec/serializers/merge_request_widget_entity_spec.rb
+1
-0
ee/spec/serializers/status_page/incident_comment_entity_spec.rb
...c/serializers/status_page/incident_comment_entity_spec.rb
+1
-0
ee/spec/serializers/vulnerabilities/feedback_entity_spec.rb
ee/spec/serializers/vulnerabilities/feedback_entity_spec.rb
+1
-0
No files found.
.rubocop_manual_todo.yml
View file @
b435c8b3
...
...
@@ -607,17 +607,6 @@ RSpec/EmptyLineAfterFinalLetItBe:
-
ee/spec/requests/callout_spec.rb
-
ee/spec/requests/git_http_geo_spec.rb
-
ee/spec/requests/repositories/git_http_controller_spec.rb
-
ee/spec/serializers/clusters/environment_serializer_spec.rb
-
ee/spec/serializers/dependency_entity_spec.rb
-
ee/spec/serializers/dependency_list_serializer_spec.rb
-
ee/spec/serializers/ee/issue_board_entity_spec.rb
-
ee/spec/serializers/ee/issue_entity_spec.rb
-
ee/spec/serializers/ee/issue_sidebar_extras_entity_spec.rb
-
ee/spec/serializers/member_entity_spec.rb
-
ee/spec/serializers/merge_request_poll_widget_entity_spec.rb
-
ee/spec/serializers/merge_request_widget_entity_spec.rb
-
ee/spec/serializers/status_page/incident_comment_entity_spec.rb
-
ee/spec/serializers/vulnerabilities/feedback_entity_spec.rb
-
ee/spec/services/alert_management/extract_alert_payload_fields_service_spec.rb
-
ee/spec/services/alert_management/process_prometheus_alert_service_spec.rb
-
ee/spec/services/analytics/cycle_analytics/stages/delete_service_spec.rb
...
...
ee/changelogs/unreleased/rspec-empty-lines-after-letitbe-ee-spec-serializers.yml
0 → 100644
View file @
b435c8b3
---
title
:
Fix RSpec/EmptyLineAfterFinalLetItBe rubocop offenses in ee/spec/serializers
merge_request
:
58362
author
:
Abdul Wadood @abdulwd
type
:
fixed
ee/spec/serializers/clusters/environment_serializer_spec.rb
View file @
b435c8b3
...
...
@@ -8,6 +8,7 @@ RSpec.describe Clusters::EnvironmentSerializer do
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:project
)
{
create
(
:project
,
namespace:
user
.
namespace
)
}
let_it_be
(
:cluster
)
{
create
(
:cluster
)
}
let
(
:resource
)
{
create
(
:environment
,
project:
project
)
}
let
(
:json_entity
)
do
...
...
ee/spec/serializers/dependency_entity_spec.rb
View file @
b435c8b3
...
...
@@ -7,6 +7,7 @@ RSpec.describe DependencyEntity do
subject
{
described_class
.
represent
(
dependency
,
request:
request
).
as_json
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:repository
,
:private
)
}
let
(
:request
)
{
double
(
'request'
)
}
let
(
:dependency
)
{
build
(
:dependency
,
:with_vulnerabilities
,
:with_licenses
,
:indirect
)
}
...
...
ee/spec/serializers/dependency_list_serializer_spec.rb
View file @
b435c8b3
...
...
@@ -5,6 +5,7 @@ require 'spec_helper'
RSpec
.
describe
DependencyListSerializer
do
let_it_be
(
:project
)
{
create
(
:project
,
:repository
,
:private
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:ci_build
)
{
create
(
:ee_ci_build
,
:success
)
}
let
(
:dependencies
)
{
[
build
(
:dependency
,
:with_vulnerabilities
,
:with_licenses
)]
}
...
...
ee/spec/serializers/ee/issue_board_entity_spec.rb
View file @
b435c8b3
...
...
@@ -6,6 +6,7 @@ RSpec.describe IssueBoardEntity do
let_it_be
(
:project
)
{
create
(
:project
)
}
let_it_be
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:request
)
{
double
(
'request'
,
current_user:
user
)
}
let
(
:blocked_ids
)
{
[]
}
...
...
ee/spec/serializers/ee/issue_entity_spec.rb
View file @
b435c8b3
...
...
@@ -8,6 +8,7 @@ RSpec.describe IssueEntity do
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:blocking_issue
)
{
create
(
:issue
,
project:
project
)
}
let_it_be
(
:blocked_issue
)
{
create
(
:issue
,
project:
project
)
}
let
(
:request
)
{
double
(
'request'
,
current_user:
user
)
}
before_all
do
...
...
ee/spec/serializers/ee/issue_sidebar_extras_entity_spec.rb
View file @
b435c8b3
...
...
@@ -7,6 +7,7 @@ RSpec.describe IssueSidebarExtrasEntity do
let_it_be
(
:project
)
{
create
(
:project
,
group:
group
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:issue
,
reload:
true
)
{
create
(
:issue
,
:confidential
,
project:
project
)
}
let
(
:request
)
{
double
(
'request'
,
current_user:
user
)
}
subject
{
described_class
.
new
(
issue
,
request:
request
).
as_json
}
...
...
ee/spec/serializers/member_entity_spec.rb
View file @
b435c8b3
...
...
@@ -4,6 +4,7 @@ require 'spec_helper'
RSpec
.
describe
MemberEntity
do
let_it_be
(
:current_user
)
{
create
(
:user
)
}
let
(
:entity
)
{
described_class
.
new
(
member
,
{
current_user:
current_user
,
group:
group
})
}
let
(
:entity_hash
)
{
entity
.
as_json
}
...
...
ee/spec/serializers/merge_request_poll_widget_entity_spec.rb
View file @
b435c8b3
...
...
@@ -8,6 +8,7 @@ RSpec.describe MergeRequestPollWidgetEntity do
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:project
)
{
create
:project
,
:repository
}
let_it_be
(
:merge_request
,
reload:
true
)
{
create
(
:merge_request
,
source_project:
project
,
target_project:
project
)
}
let
(
:request
)
{
double
(
'request'
,
current_user:
user
)
}
before
do
...
...
ee/spec/serializers/merge_request_widget_entity_spec.rb
View file @
b435c8b3
...
...
@@ -9,6 +9,7 @@ RSpec.describe MergeRequestWidgetEntity do
let_it_be
(
:project
,
reload:
true
)
{
create
:project
,
:repository
}
let_it_be
(
:merge_request
,
reload:
true
)
{
create
(
:merge_request
,
source_project:
project
,
target_project:
project
)
}
let_it_be
(
:pipeline
,
reload:
true
)
{
create
(
:ci_empty_pipeline
,
project:
project
)
}
let
(
:request
)
{
double
(
'request'
,
current_user:
user
)
}
before
do
...
...
ee/spec/serializers/status_page/incident_comment_entity_spec.rb
View file @
b435c8b3
...
...
@@ -4,6 +4,7 @@ require 'spec_helper'
RSpec
.
describe
StatusPage
::
IncidentCommentEntity
do
let_it_be
(
:note
,
reload:
true
)
{
create
(
:note
,
note:
':ok:'
)
}
let
(
:json
)
{
subject
.
as_json
}
let
(
:issue
)
{
instance_double
(
Issue
,
iid:
1
)
}
...
...
ee/spec/serializers/vulnerabilities/feedback_entity_spec.rb
View file @
b435c8b3
...
...
@@ -5,6 +5,7 @@ require 'spec_helper'
RSpec
.
describe
Vulnerabilities
::
FeedbackEntity
do
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:project
)
{
create
(
:project
)
}
let
(
:request
)
{
double
(
'request'
)
}
let
(
:entity
)
{
described_class
.
represent
(
feedback
,
request:
request
)
}
...
...
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