BigW Consortium Gitlab

trigger_requests.rb 322 Bytes
Newer Older
1
FactoryGirl.define do
Dmitriy Zaporozhets committed
2
  factory :ci_trigger_request, class: Ci::TriggerRequest do
3
    factory :ci_trigger_request_with_variables do
4
      trigger factory: :ci_trigger
5

6 7
      variables do
        {
8 9
          TRIGGER_KEY_1: 'TRIGGER_VALUE_1',
          TRIGGER_KEY_2: 'TRIGGER_VALUE_2'
10 11 12 13 14
        }
      end
    end
  end
end