2015-09-25 12:07:36 +05:30
|
|
|
FactoryGirl.define do
|
|
|
|
factory :ci_trigger_without_token, class: Ci::Trigger do
|
|
|
|
factory :ci_trigger do
|
2017-08-17 22:00:37 +05:30
|
|
|
sequence(:token) { |n| "token#{n}" }
|
|
|
|
|
|
|
|
factory :ci_trigger_for_trigger_schedule do
|
|
|
|
token { SecureRandom.hex(15) }
|
|
|
|
owner factory: :user
|
|
|
|
project factory: :project
|
|
|
|
ref 'master'
|
|
|
|
end
|
2015-09-25 12:07:36 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|