diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-19 06:06:07 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-19 06:06:07 +0000 |
commit | 3209c1a49c14cab93eb347bfca59bace30879440 (patch) | |
tree | c9f931b477fefc1e5056380eb3370c689c2fa732 /spec/factories/snippets.rb | |
parent | 7f3bff1556594dcdc1beca40d083ba7263965e21 (diff) | |
download | gitlab-ce-3209c1a49c14cab93eb347bfca59bace30879440.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories/snippets.rb')
-rw-r--r-- | spec/factories/snippets.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/factories/snippets.rb b/spec/factories/snippets.rb index ede071ae70c..5990ed7ffb0 100644 --- a/spec/factories/snippets.rb +++ b/spec/factories/snippets.rb @@ -7,6 +7,7 @@ FactoryBot.define do content { generate(:title) } description { generate(:title) } file_name { generate(:filename) } + secret { false } trait :public do visibility_level { Snippet::PUBLIC } @@ -27,5 +28,9 @@ FactoryBot.define do end factory :personal_snippet, parent: :snippet, class: :PersonalSnippet do + trait :secret do + visibility_level { Snippet::PUBLIC } + secret { true } + end end end |