Welcome to mirror list, hosted at ThFree Co, Russian Federation.

trigger_requests.rb « ci « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b8d8fab0e0b4f261c23826a669c9d481d33d2b49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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