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
e05e9f52
Commit
e05e9f52
authored
Apr 28, 2021
by
Abdul Wadood
Committed by
Arturo Herrero
Apr 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix RSpec/EmptyLineAfterFinalLetItBe for ee/spec/helpers
parent
bb34fc19
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
14 additions
and
9 deletions
+14
-9
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-9
ee/changelogs/unreleased/rspec-empty-lines-after-letitbe-ee-spec-helpers.yml
...eased/rspec-empty-lines-after-letitbe-ee-spec-helpers.yml
+5
-0
ee/spec/helpers/ee/graph_helper_spec.rb
ee/spec/helpers/ee/graph_helper_spec.rb
+1
-0
ee/spec/helpers/ee/issues_helper_spec.rb
ee/spec/helpers/ee/issues_helper_spec.rb
+1
-0
ee/spec/helpers/ee/projects/incidents_helper_spec.rb
ee/spec/helpers/ee/projects/incidents_helper_spec.rb
+1
-0
ee/spec/helpers/ee/projects/security/api_fuzzing_configuration_helper_spec.rb
...rojects/security/api_fuzzing_configuration_helper_spec.rb
+1
-0
ee/spec/helpers/ee/projects/security/configuration_helper_spec.rb
...helpers/ee/projects/security/configuration_helper_spec.rb
+1
-0
ee/spec/helpers/ee/projects/security/sast_configuration_helper_spec.rb
...rs/ee/projects/security/sast_configuration_helper_spec.rb
+1
-0
ee/spec/helpers/ee/trial_helper_spec.rb
ee/spec/helpers/ee/trial_helper_spec.rb
+1
-0
ee/spec/helpers/ee/user_callouts_helper_spec.rb
ee/spec/helpers/ee/user_callouts_helper_spec.rb
+1
-0
ee/spec/helpers/vulnerabilities_helper_spec.rb
ee/spec/helpers/vulnerabilities_helper_spec.rb
+1
-0
No files found.
.rubocop_manual_todo.yml
View file @
e05e9f52
...
...
@@ -397,15 +397,6 @@ RSpec/EmptyLineAfterFinalLetItBe:
-
ee/spec/features/markdown/metrics_spec.rb
-
ee/spec/features/registrations/group_invites_during_signup_flow_spec.rb
-
ee/spec/features/subscriptions_spec.rb
-
ee/spec/helpers/ee/graph_helper_spec.rb
-
ee/spec/helpers/ee/issues_helper_spec.rb
-
ee/spec/helpers/ee/projects/incidents_helper_spec.rb
-
ee/spec/helpers/ee/projects/security/api_fuzzing_configuration_helper_spec.rb
-
ee/spec/helpers/ee/projects/security/configuration_helper_spec.rb
-
ee/spec/helpers/ee/projects/security/sast_configuration_helper_spec.rb
-
ee/spec/helpers/ee/trial_helper_spec.rb
-
ee/spec/helpers/ee/user_callouts_helper_spec.rb
-
ee/spec/helpers/vulnerabilities_helper_spec.rb
-
ee/spec/lib/ee/api/entities/user_with_admin_spec.rb
-
ee/spec/lib/ee/api/entities/vulnerability_spec.rb
-
ee/spec/lib/ee/event_filter_spec.rb
...
...
ee/changelogs/unreleased/rspec-empty-lines-after-letitbe-ee-spec-helpers.yml
0 → 100644
View file @
e05e9f52
---
title
:
Fix RSpec/EmptyLineAfterFinalLetItBe rubocop offenses in ee/spec/helpers
merge_request
:
58383
author
:
Abdul Wadood @abdulwd
type
:
other
ee/spec/helpers/ee/graph_helper_spec.rb
View file @
e05e9f52
...
...
@@ -4,6 +4,7 @@ require 'spec_helper'
RSpec
.
describe
EE
::
GraphHelper
do
let_it_be
(
:current_user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:private
)
}
let
(
:is_feature_licensed
)
{
true
}
let
(
:is_user_authorized
)
{
true
}
...
...
ee/spec/helpers/ee/issues_helper_spec.rb
View file @
e05e9f52
...
...
@@ -47,6 +47,7 @@ RSpec.describe EE::IssuesHelper do
describe
'#issue_in_subepic?'
do
let_it_be
(
:epic
)
{
create
(
:epic
)
}
let_it_be
(
:epic_issue
)
{
create
(
:epic_issue
,
epic:
epic
)
}
let
(
:issue
)
{
build_stubbed
(
:issue
,
epic_issue:
epic_issue
)
}
let
(
:new_issue
)
{
build_stubbed
(
:issue
)
}
...
...
ee/spec/helpers/ee/projects/incidents_helper_spec.rb
View file @
e05e9f52
...
...
@@ -6,6 +6,7 @@ RSpec.describe Projects::IncidentsHelper do
include
Gitlab
::
Routing
.
url_helpers
let_it_be_with_refind
(
:project
)
{
create
(
:project
)
}
let
(
:project_path
)
{
project
.
full_path
}
let
(
:new_issue_path
)
{
new_project_issue_path
(
project
)
}
let
(
:issue_path
)
{
project_issues_path
(
project
)
}
...
...
ee/spec/helpers/ee/projects/security/api_fuzzing_configuration_helper_spec.rb
View file @
e05e9f52
...
...
@@ -5,6 +5,7 @@ require 'spec_helper'
RSpec
.
describe
Projects
::
Security
::
ApiFuzzingConfigurationHelper
do
let_it_be
(
:project
)
{
create
(
:project
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:security_configuration_path
)
{
project_security_configuration_path
(
project
)
}
let
(
:full_path
)
{
project
.
full_path
}
let
(
:api_fuzzing_documentation_path
)
{
help_page_path
(
'user/application_security/api_fuzzing/index'
)
}
...
...
ee/spec/helpers/ee/projects/security/configuration_helper_spec.rb
View file @
e05e9f52
...
...
@@ -6,6 +6,7 @@ RSpec.describe EE::Projects::Security::ConfigurationHelper do
include
ActionView
::
Helpers
::
UrlHelper
let_it_be
(
:project
)
{
create
(
:project
)
}
let
(
:current_user
)
{
create
(
:user
)
}
subject
{
helper
.
security_upgrade_path
}
...
...
ee/spec/helpers/ee/projects/security/sast_configuration_helper_spec.rb
View file @
e05e9f52
...
...
@@ -4,6 +4,7 @@ require 'spec_helper'
RSpec
.
describe
Projects
::
Security
::
SastConfigurationHelper
do
let_it_be
(
:project
)
{
create
(
:project
)
}
let
(
:project_path
)
{
project
.
full_path
}
let
(
:docs_path
)
{
help_page_path
(
'user/application_security/sast/index'
,
anchor:
'configuration'
)
}
let
(
:analyzers_docs_path
)
{
help_page_path
(
'user/application_security/sast/analyzers'
)
}
...
...
ee/spec/helpers/ee/trial_helper_spec.rb
View file @
e05e9f52
...
...
@@ -121,6 +121,7 @@ RSpec.describe EE::TrialHelper do
describe
'#show_trial_namespace_select?'
do
let_it_be
(
:have_group_namespace
)
{
false
}
before
do
allow
(
helper
).
to
receive
(
:any_trial_group_namespaces?
).
and_return
(
have_group_namespace
)
end
...
...
ee/spec/helpers/ee/user_callouts_helper_spec.rb
View file @
e05e9f52
...
...
@@ -135,6 +135,7 @@ RSpec.describe EE::UserCalloutsHelper do
describe
'#render_dashboard_ultimate_trial'
do
let_it_be
(
:namespace
)
{
create
(
:namespace
)
}
let_it_be
(
:ultimate_plan
)
{
create
(
:ultimate_plan
)
}
let
(
:user
)
{
namespace
.
owner
}
where
(
:any_namespace_without_trial?
,
:show_ultimate_trial?
,
:user_default_dashboard?
,
:has_no_trial_or_paid_plan?
,
:should_render?
)
do
...
...
ee/spec/helpers/vulnerabilities_helper_spec.rb
View file @
e05e9f52
...
...
@@ -7,6 +7,7 @@ RSpec.describe VulnerabilitiesHelper do
let_it_be
(
:project
)
{
create
(
:project
,
:repository
,
:public
)
}
let_it_be
(
:pipeline
)
{
create
(
:ci_pipeline
,
:success
,
project:
project
)
}
let_it_be
(
:finding
)
{
create
(
:vulnerabilities_finding
,
pipelines:
[
pipeline
],
project:
project
,
severity: :high
)
}
let
(
:vulnerability
)
{
create
(
:vulnerability
,
title:
"My vulnerability"
,
project:
project
,
findings:
[
finding
])
}
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