Commit 4c5ee6ee authored by Jacopo's avatar Jacopo

Add snippet DB visibility check in spec

parent d593f57c
---
title: Add snippet DB visibility check in spec
merge_request: 33388
author: Jacopo Beschi @jacopo-beschi
type: changed
...@@ -176,6 +176,8 @@ shared_examples_for 'snippet editor' do ...@@ -176,6 +176,8 @@ shared_examples_for 'snippet editor' do
click_link('Internal') click_link('Internal')
expect(page).to have_content('My Snippet Title') 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 end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment