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
cbb212b8
Commit
cbb212b8
authored
Apr 09, 2021
by
charlie ablett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix failing spec and static analysis error
parent
c8a031af
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
ee/app/helpers/ee/ci/pipeline_editor_helper.rb
ee/app/helpers/ee/ci/pipeline_editor_helper.rb
+1
-1
ee/spec/helpers/ee/ci/pipeline_editor_helper_spec.rb
ee/spec/helpers/ee/ci/pipeline_editor_helper_spec.rb
+1
-1
spec/helpers/projects/ci/pipeline_editor_helper_spec.rb
spec/helpers/projects/ci/pipeline_editor_helper_spec.rb
+3
-3
No files found.
ee/app/helpers/ee/ci/pipeline_editor_helper.rb
View file @
cbb212b8
...
...
@@ -7,7 +7,7 @@ module EE
override
:js_pipeline_editor_data
def
js_pipeline_editor_data
(
project
)
return
super
unless
project
.
feature_available?
(
:coverage
_fuzzing
)
return
super
unless
project
.
licensed_feature_available?
(
:api
_fuzzing
)
super
.
merge
(
"api-fuzzing-configuration-path"
=>
project_security_configuration_api_fuzzing_path
(
project
)
...
...
ee/spec/helpers/ee/ci/pipeline_editor_helper_spec.rb
View file @
cbb212b8
...
...
@@ -7,7 +7,7 @@ RSpec.describe EE::Ci::PipelineEditorHelper do
describe
'#js_pipeline_editor_data'
do
before
do
stub_licensed_features
(
coverage
_fuzzing:
true
)
stub_licensed_features
(
api
_fuzzing:
true
)
allow
(
helper
)
.
to
receive
(
:namespace_project_new_merge_request_path
)
...
...
spec/helpers/projects/ci/pipeline_editor_helper_spec.rb
View file @
cbb212b8
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
RSpec
.
describe
Projects
::
Ci
::
PipelineEditorHelper
do
RSpec
.
describe
::
Ci
::
PipelineEditorHelper
do
let_it_be
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
describe
'#js_pipeline_editor_data'
do
...
...
@@ -13,11 +13,11 @@ RSpec.describe Projects::Ci::PipelineEditorHelper do
subject
{
helper
.
js_pipeline_editor_data
(
project
)
}
it
{
is_expected
.
to
eq
({
is_expected
.
to
match
({
"ci-config-path"
:
project
.
ci_config_path_or_default
,
"commit-sha"
=>
project
.
commit
.
sha
,
"default-branch"
=>
project
.
default_branch
,
"empty-state-illustration-path"
=>
match_asset_path
(
'/assets/illustrations/empty-state/empty-dag-md.svg'
),
"empty-state-illustration-path"
=>
match_asset_path
(
"/assets/illustrations/empty-state/empty-dag-md.svg"
),
"initial-branch-name"
:
nil
,
"lint-help-page-path"
=>
help_page_path
(
'ci/lint'
,
anchor:
'validate-basic-logic-and-syntax'
),
"new-merge-request-path"
=>
'/mock/project/-/merge_requests/new'
,
...
...
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