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
593bd54d
Commit
593bd54d
authored
Apr 09, 2021
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test helper without licensed feature
parent
cbb212b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
ee/spec/helpers/ee/ci/pipeline_editor_helper_spec.rb
ee/spec/helpers/ee/ci/pipeline_editor_helper_spec.rb
+14
-4
No files found.
ee/spec/helpers/ee/ci/pipeline_editor_helper_spec.rb
View file @
593bd54d
...
...
@@ -7,8 +7,6 @@ RSpec.describe EE::Ci::PipelineEditorHelper do
describe
'#js_pipeline_editor_data'
do
before
do
stub_licensed_features
(
api_fuzzing:
true
)
allow
(
helper
)
.
to
receive
(
:namespace_project_new_merge_request_path
)
.
and_return
(
'/mock/project/-/merge_requests/new'
)
...
...
@@ -20,8 +18,20 @@ RSpec.describe EE::Ci::PipelineEditorHelper do
subject
(
:pipeline_editor_data
)
{
helper
.
js_pipeline_editor_data
(
project
)
}
it
'returns ee specific values'
do
expect
(
pipeline_editor_data
.
keys
).
to
include
(
'api-fuzzing-configuration-path'
)
context
'with licensed feature'
do
before
do
stub_licensed_features
(
api_fuzzing:
true
)
end
it
'returns ee specific values'
do
expect
(
pipeline_editor_data
.
keys
).
to
include
(
'api-fuzzing-configuration-path'
)
end
end
context
'without licensed feature'
do
it
'returns ee specific values'
do
expect
(
pipeline_editor_data
.
keys
).
not_to
include
(
'api-fuzzing-configuration-path'
)
end
end
end
end
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