15 lines
344 B
Ruby
15 lines
344 B
Ruby
# 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
|
|
trigger factory: :ci_trigger
|
|
|
|
variables do
|
|
{
|
|
TRIGGER_KEY: 'TRIGGER_VALUE'
|
|
}
|
|
end
|
|
end
|
|
end
|
|
end
|