2015-09-25 12:07:36 +05:30
|
|
|
# Read about factories at https://github.com/thoughtbot/factory_girl
|
|
|
|
|
|
|
|
FactoryGirl.define do
|
|
|
|
factory :ci_trigger_request, class: Ci::TriggerRequest do
|
|
|
|
factory :ci_trigger_request_with_variables do
|
2016-01-19 16:12:03 +05:30
|
|
|
trigger factory: :ci_trigger
|
|
|
|
|
2015-09-25 12:07:36 +05:30
|
|
|
variables do
|
|
|
|
{
|
|
|
|
TRIGGER_KEY: 'TRIGGER_VALUE'
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|