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
4c5ee6ee
Commit
4c5ee6ee
authored
Jun 03, 2020
by
Jacopo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add snippet DB visibility check in spec
parent
d593f57c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
changelogs/unreleased/219151-follow-up-from-fallback-to-lowest-visibility-level-in-snippet-visi.yml
...m-fallback-to-lowest-visibility-level-in-snippet-visi.yml
+5
-0
spec/features/snippets/user_creates_snippet_spec.rb
spec/features/snippets/user_creates_snippet_spec.rb
+2
-0
No files found.
changelogs/unreleased/219151-follow-up-from-fallback-to-lowest-visibility-level-in-snippet-visi.yml
0 → 100644
View file @
4c5ee6ee
---
title
:
Add snippet DB visibility check in spec
merge_request
:
33388
author
:
Jacopo Beschi @jacopo-beschi
type
:
changed
spec/features/snippets/user_creates_snippet_spec.rb
View file @
4c5ee6ee
...
...
@@ -176,6 +176,8 @@ shared_examples_for 'snippet editor' do
click_link
(
'Internal'
)
expect
(
page
).
to
have_content
(
'My Snippet Title'
)
created_snippet
=
Snippet
.
last
expect
(
created_snippet
.
visibility_level
).
to
eq
(
Gitlab
::
VisibilityLevel
::
INTERNAL
)
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