gitlab-org--gitlab-foss/spec/factories/ci/triggers.rb
Lin Jen-Shin 2d4744c34c Make default trigger factory generate an owner
And specify owners more clearly
2017-08-25 19:53:58 +08:00

9 lines
180 B
Ruby

FactoryGirl.define do
factory :ci_trigger_without_token, class: Ci::Trigger do
owner
factory :ci_trigger do
sequence(:token) { |n| "token#{n}" }
end
end
end