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

15 lines
322 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
2015-09-09 08:17:16 -04:00
factory :ci_trigger_request_with_variables do
2016-01-05 05:01:44 -05:00
trigger factory: :ci_trigger
2016-01-04 10:38:32 -05:00
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