debian-mirror-gitlab/spec/factories/snippets.rb

21 lines
380 B
Ruby
Raw Normal View History

2016-06-02 11:05:42 +05:30
FactoryGirl.define do
factory :snippet do
author
2017-08-17 22:00:37 +05:30
title { generate(:title) }
content { generate(:title) }
file_name { generate(:filename) }
2016-06-02 11:05:42 +05:30
trait :public do
visibility_level Snippet::PUBLIC
end
trait :internal do
visibility_level Snippet::INTERNAL
end
trait :private do
visibility_level Snippet::PRIVATE
end
end
end