diff options
author | Gabriel Mazetto <gabriel@gitlab.com> | 2016-04-27 10:24:49 +0300 |
---|---|---|
committer | Gabriel Mazetto <gabriel@gitlab.com> | 2016-04-30 11:04:10 +0300 |
commit | 0cd5edf35cfaca74344dd389aadd65f0f179d395 (patch) | |
tree | d83d697f60126f5b10992dca550751e2182778d9 /spec/factories/project_hooks.rb | |
parent | 40c38644a88b8f5e88e6fd3317421206d8ee851e (diff) |
Backported minimal safewebhook implementation to GitLab CE
Diffstat (limited to 'spec/factories/project_hooks.rb')
-rw-r--r-- | spec/factories/project_hooks.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories/project_hooks.rb b/spec/factories/project_hooks.rb index 94dd935a039..3195fb3ddcc 100644 --- a/spec/factories/project_hooks.rb +++ b/spec/factories/project_hooks.rb @@ -1,5 +1,9 @@ FactoryGirl.define do factory :project_hook do url { FFaker::Internet.uri('http') } + + trait :token do + token { SecureRandom.hex(10) } + end end end |