debian-mirror-gitlab/spec/factories/ci/triggers.rb

10 lines
179 B
Ruby
Raw Normal View History

2018-03-17 18:26:18 +05:30
FactoryBot.define do
2015-09-25 12:07:36 +05:30
factory :ci_trigger_without_token, class: Ci::Trigger do
2018-03-17 18:26:18 +05:30
owner
2015-09-25 12:07:36 +05:30
factory :ci_trigger do
2017-08-17 22:00:37 +05:30
sequence(:token) { |n| "token#{n}" }
2015-09-25 12:07:36 +05:30
end
end
end