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
9a4b4cee
Commit
9a4b4cee
authored
Feb 06, 2020
by
Tetiana Chupryna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add case with disabled features
parent
8e6e38fc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
13 deletions
+23
-13
ee/spec/presenters/ci/pipeline_presenter_spec.rb
ee/spec/presenters/ci/pipeline_presenter_spec.rb
+23
-13
No files found.
ee/spec/presenters/ci/pipeline_presenter_spec.rb
View file @
9a4b4cee
...
...
@@ -28,6 +28,7 @@ describe Ci::PipelinePresenter do
describe
'#expose_security_dashboard?'
do
subject
{
presenter
.
expose_security_dashboard?
}
context
'when features are available'
do
before
do
stub_licensed_features
(
dependency_scanning:
true
,
license_management:
true
)
end
...
...
@@ -50,4 +51,13 @@ describe Ci::PipelinePresenter do
it
{
is_expected
.
to
be_falsey
}
end
end
context
'when features are disabled'
do
context
'when there is an artifact of a right type'
do
let!
(
:build
)
{
create
(
:ee_ci_build
,
:dependency_scanning
,
pipeline:
pipeline
)
}
it
{
is_expected
.
to
be_falsey
}
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