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
b4814369
Commit
b4814369
authored
Apr 20, 2021
by
Abdul Wadood
Committed by
David O'Regan
Apr 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix RSpec/EmptyLineAfterFinalLetItBe for ee/spec/controllers/projects
parent
93f3c7e9
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
21 additions
and
7 deletions
+21
-7
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-7
ee/changelogs/unreleased/rspec-empty-lines-after-letitbe-ee-spec-controllers-projects.yml
...mpty-lines-after-letitbe-ee-spec-controllers-projects.yml
+5
-0
ee/spec/controllers/projects/branches_controller_spec.rb
ee/spec/controllers/projects/branches_controller_spec.rb
+1
-0
ee/spec/controllers/projects/incident_management/oncall_schedules_controller_spec.rb
...s/incident_management/oncall_schedules_controller_spec.rb
+1
-0
ee/spec/controllers/projects/insights_controller_spec.rb
ee/spec/controllers/projects/insights_controller_spec.rb
+1
-0
ee/spec/controllers/projects/licenses_controller_spec.rb
ee/spec/controllers/projects/licenses_controller_spec.rb
+1
-0
ee/spec/controllers/projects/merge_requests_controller_spec.rb
...ec/controllers/projects/merge_requests_controller_spec.rb
+10
-0
ee/spec/controllers/projects/mirrors_controller_spec.rb
ee/spec/controllers/projects/mirrors_controller_spec.rb
+1
-0
ee/spec/controllers/projects/threat_monitoring_controller_spec.rb
...controllers/projects/threat_monitoring_controller_spec.rb
+1
-0
No files found.
.rubocop_manual_todo.yml
View file @
b4814369
...
...
@@ -419,13 +419,6 @@ RSpec/EmptyLineAfterFinalLetItBe:
-
ee/spec/controllers/groups/autocomplete_sources_controller_spec.rb
-
ee/spec/controllers/groups/insights_controller_spec.rb
-
ee/spec/controllers/groups/todos_controller_spec.rb
-
ee/spec/controllers/projects/branches_controller_spec.rb
-
ee/spec/controllers/projects/incident_management/oncall_schedules_controller_spec.rb
-
ee/spec/controllers/projects/insights_controller_spec.rb
-
ee/spec/controllers/projects/licenses_controller_spec.rb
-
ee/spec/controllers/projects/merge_requests_controller_spec.rb
-
ee/spec/controllers/projects/mirrors_controller_spec.rb
-
ee/spec/controllers/projects/threat_monitoring_controller_spec.rb
-
ee/spec/controllers/subscriptions_controller_spec.rb
-
ee/spec/features/boards/group_boards/multiple_boards_spec.rb
-
ee/spec/features/ci_shared_runner_warnings_spec.rb
...
...
ee/changelogs/unreleased/rspec-empty-lines-after-letitbe-ee-spec-controllers-projects.yml
0 → 100644
View file @
b4814369
---
title
:
Fix RSpec/EmptyLineAfterFinalLetItBe rubocop offenses in ee/spec/controllers/projects
merge_request
:
58410
author
:
Abdul Wadood @abdulwd
type
:
fixed
ee/spec/controllers/projects/branches_controller_spec.rb
View file @
b4814369
...
...
@@ -4,6 +4,7 @@ require 'spec_helper'
RSpec
.
describe
Projects
::
BranchesController
do
let_it_be
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:user
)
{
project
.
owner
}
before
do
...
...
ee/spec/controllers/projects/incident_management/oncall_schedules_controller_spec.rb
View file @
b4814369
...
...
@@ -7,6 +7,7 @@ RSpec.describe Projects::IncidentManagement::OncallSchedulesController do
let_it_be
(
:user_with_read_permissions
)
{
create
(
:user
)
}
let_it_be
(
:user_with_admin_permissions
)
{
create
(
:user
)
}
let_it_be
(
:project
)
{
create
(
:project
)
}
let
(
:current_user
)
{
user_with_admin_permissions
}
describe
'GET #index'
do
...
...
ee/spec/controllers/projects/insights_controller_spec.rb
View file @
b4814369
...
...
@@ -7,6 +7,7 @@ RSpec.describe Projects::InsightsController do
let_it_be
(
:project
)
{
create
(
:project
,
:private
,
namespace:
group
)
}
let_it_be
(
:insight
)
{
create
(
:insight
,
group:
group
,
project:
project
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:query_params
)
{
{
type:
'bar'
,
query:
{
issuable_type:
'issue'
,
collection_labels:
[
'bug'
]
},
projects:
projects_params
}
}
let
(
:projects_params
)
{
{
only:
[
project
.
id
,
project
.
full_path
]
}
}
let
(
:params
)
{
{
trailing_slash:
true
,
project_id:
project
,
namespace_id:
group
}
}
...
...
ee/spec/controllers/projects/licenses_controller_spec.rb
View file @
b4814369
...
...
@@ -6,6 +6,7 @@ RSpec.describe Projects::LicensesController do
describe
"GET #index"
do
let_it_be
(
:project
)
{
create
(
:project
,
:repository
,
:private
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:params
)
{
{
namespace_id:
project
.
namespace
,
project_id:
project
}
}
let
(
:get_licenses
)
{
get
:index
,
params:
params
,
format: :json
}
...
...
ee/spec/controllers/projects/merge_requests_controller_spec.rb
View file @
b4814369
...
...
@@ -5,6 +5,7 @@ require 'spec_helper'
RSpec
.
shared_examples
'authorize read pipeline'
do
context
'public project with private builds'
do
let_it_be
(
:project
)
{
create
(
:project
,
:public
,
:builds_private
)
}
let
(
:comparison_status
)
{
{}
}
it
'restricts access to signed out users'
do
...
...
@@ -52,6 +53,7 @@ RSpec.describe Projects::MergeRequestsController do
let_it_be_with_refind
(
:project
)
{
create
(
:project
,
:repository
)
}
let_it_be
(
:author
)
{
create
(
:user
)
}
let
(
:merge_request
)
{
create
(
:merge_request_with_diffs
,
source_project:
project
,
author:
author
)
}
let
(
:user
)
{
project
.
creator
}
let
(
:viewer
)
{
user
}
...
...
@@ -344,6 +346,7 @@ RSpec.describe Projects::MergeRequestsController do
describe
'GET #dependency_scanning_reports'
do
let_it_be_with_reload
(
:merge_request
)
{
create
(
:ee_merge_request
,
:with_dependency_scanning_reports
,
source_project:
project
,
author:
author
)
}
let
(
:params
)
do
{
namespace_id:
project
.
namespace
.
to_param
,
...
...
@@ -416,6 +419,7 @@ RSpec.describe Projects::MergeRequestsController do
describe
'GET #container_scanning_reports'
do
let_it_be_with_reload
(
:merge_request
)
{
create
(
:ee_merge_request
,
:with_container_scanning_reports
,
source_project:
project
,
author:
author
)
}
let
(
:params
)
do
{
namespace_id:
project
.
namespace
.
to_param
,
...
...
@@ -488,6 +492,7 @@ RSpec.describe Projects::MergeRequestsController do
describe
'GET #sast_reports'
do
let_it_be_with_reload
(
:merge_request
)
{
create
(
:ee_merge_request
,
:with_sast_reports
,
source_project:
project
,
author:
author
)
}
let
(
:params
)
do
{
namespace_id:
project
.
namespace
.
to_param
,
...
...
@@ -706,6 +711,7 @@ RSpec.describe Projects::MergeRequestsController do
describe
'GET #secret_detection_reports'
do
let_it_be_with_reload
(
:merge_request
)
{
create
(
:ee_merge_request
,
:with_secret_detection_reports
,
source_project:
project
,
author:
author
)
}
let
(
:params
)
do
{
namespace_id:
project
.
namespace
.
to_param
,
...
...
@@ -779,6 +785,7 @@ RSpec.describe Projects::MergeRequestsController do
describe
'GET #dast_reports'
do
let_it_be_with_reload
(
:merge_request
)
{
create
(
:ee_merge_request
,
:with_dast_reports
,
source_project:
project
)
}
let
(
:params
)
do
{
namespace_id:
project
.
namespace
.
to_param
,
...
...
@@ -851,6 +858,7 @@ RSpec.describe Projects::MergeRequestsController do
describe
'GET #license_scanning_reports'
do
let_it_be_with_reload
(
:merge_request
)
{
create
(
:ee_merge_request
,
:with_license_scanning_reports
,
source_project:
project
,
author:
author
)
}
let
(
:comparison_status
)
{
{
status: :parsed
,
data:
{
new_licenses:
[],
existing_licenses:
[],
removed_licenses:
[]
}
}
}
let
(
:params
)
do
...
...
@@ -946,6 +954,7 @@ RSpec.describe Projects::MergeRequestsController do
context
"when a user is NOT authorized to read licenses on a project"
do
let_it_be
(
:project
)
{
create
(
:project
,
:repository
,
:private
)
}
let_it_be
(
:merge_request
)
{
create
(
:ee_merge_request
,
:with_license_scanning_reports
,
source_project:
project
,
author:
author
)
}
let
(
:viewer
)
{
create
(
:user
)
}
it
'returns a report'
do
...
...
@@ -958,6 +967,7 @@ RSpec.describe Projects::MergeRequestsController do
context
"when a user is authorized to read the licenses"
do
let_it_be
(
:project
)
{
create
(
:project
,
:repository
,
:private
)
}
let_it_be
(
:merge_request
)
{
create
(
:ee_merge_request
,
:with_license_scanning_reports
,
source_project:
project
,
author:
author
)
}
let
(
:viewer
)
{
create
(
:user
)
}
before
do
...
...
ee/spec/controllers/projects/mirrors_controller_spec.rb
View file @
b4814369
...
...
@@ -7,6 +7,7 @@ RSpec.describe Projects::MirrorsController do
describe
'setting up a remote mirror'
do
let_it_be
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:url
)
{
'http://foo.com'
}
context
'when the current project is a mirror'
do
...
...
ee/spec/controllers/projects/threat_monitoring_controller_spec.rb
View file @
b4814369
...
...
@@ -138,6 +138,7 @@ RSpec.describe Projects::ThreatMonitoringController do
end
let_it_be
(
:environment
)
{
create
(
:environment
,
:with_review_app
,
project:
project
)
}
let
(
:environment_id
)
{
environment
.
id
}
context
'with authorized user'
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