BigW Consortium Gitlab

project_hooks.rb 474 Bytes
Newer Older
1 2
FactoryGirl.define do
  factory :project_hook do
3
    url { generate(:url) }
4
    enable_ssl_verification false
5 6 7 8

    trait :token do
      token { SecureRandom.hex(10) }
    end
9 10

    trait :all_events_enabled do
11 12 13 14
      push_events true
      merge_requests_events true
      tag_push_events true
      issues_events true
15
      confidential_issues_events true
16
      note_events true
17
      job_events true
18
      pipeline_events true
19
      wiki_page_events true
20
    end
21 22
  end
end