2016-02-16 22:55:24 -05:00
|
|
|
FactoryGirl.define do
|
|
|
|
factory :project_hook do
|
|
|
|
url { FFaker::Internet.uri('http') }
|
2016-04-27 03:24:49 -04:00
|
|
|
|
|
|
|
trait :token do
|
|
|
|
token { SecureRandom.hex(10) }
|
|
|
|
end
|
2016-08-12 04:48:47 -04:00
|
|
|
|
|
|
|
trait :all_events_enabled do
|
2016-08-12 16:09:58 -04:00
|
|
|
push_events true
|
|
|
|
merge_requests_events true
|
|
|
|
tag_push_events true
|
|
|
|
issues_events true
|
|
|
|
note_events true
|
|
|
|
build_events true
|
|
|
|
pipeline_events true
|
2016-08-12 04:48:47 -04:00
|
|
|
end
|
2016-02-16 22:55:24 -05:00
|
|
|
end
|
|
|
|
end
|