summaryrefslogtreecommitdiff
path: root/features/steps/shared/snippet.rb
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2014-10-24 11:52:52 +0300
committerValery Sizov <valery@gitlab.com>2014-10-24 11:52:52 +0300
commit705652d62538ec29d125e0ec62bebc99ddc3af71 (patch)
treed93b9d990862b05eb72e8af73a4f6e7ecad60f89 /features/steps/shared/snippet.rb
parentc6efa56ee7039882625942ce29ea9fdeeffaa6cd (diff)
downloadgitlab-ce-705652d62538ec29d125e0ec62bebc99ddc3af71.tar.gz
fix for public snippet
Diffstat (limited to 'features/steps/shared/snippet.rb')
-rw-r--r--features/steps/shared/snippet.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/features/steps/shared/snippet.rb b/features/steps/shared/snippet.rb
index 432f32defce..bb596c1620a 100644
--- a/features/steps/shared/snippet.rb
+++ b/features/steps/shared/snippet.rb
@@ -51,4 +51,13 @@ module SharedSnippet
visibility_level: Snippet::PUBLIC,
author: current_user)
end
+
+ step 'There is public "Personal snippet one" snippet' do
+ create(:personal_snippet,
+ title: "Personal snippet one",
+ content: "Test content",
+ file_name: "snippet.rb",
+ visibility_level: Snippet::PUBLIC,
+ author: create(:user))
+ end
end