summaryrefslogtreecommitdiff
path: root/spec/factories/ci/trigger_requests.rb
blob: 2c0d004d2675f4f5abc2465263e6ae9850db8ef2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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