gitlab-org--gitlab-foss/spec/factories/ci/trigger_requests.rb

15 lines
320 B
Ruby
Raw Normal View History

2015-08-25 21:42:46 -04:00
FactoryGirl.define do
2015-09-10 09:52:52 -04:00
factory :ci_trigger_request, class: Ci::TriggerRequest do
trigger factory: :ci_trigger
2016-01-04 10:38:32 -05:00
factory :ci_trigger_request_with_variables do
2015-08-25 21:42:46 -04:00
variables do
{
TRIGGER_KEY_1: 'TRIGGER_VALUE_1',
TRIGGER_KEY_2: 'TRIGGER_VALUE_2'
2015-08-25 21:42:46 -04:00
}
end
end
end
end