gitlab-org--gitlab-foss/spec/factories/ci/trigger_requests.rb
2016-07-26 11:19:40 +02:00

14 lines
322 B
Ruby

FactoryGirl.define do
factory :ci_trigger_request, class: Ci::TriggerRequest do
factory :ci_trigger_request_with_variables do
trigger factory: :ci_trigger
variables do
{
TRIGGER_KEY_1: 'TRIGGER_VALUE_1',
TRIGGER_KEY_2: 'TRIGGER_VALUE_2'
}
end
end
end
end