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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Mazetto <gabriel@gitlab.com>2016-04-27 10:24:49 +0300
committerGabriel Mazetto <gabriel@gitlab.com>2016-04-30 11:04:10 +0300
commit0cd5edf35cfaca74344dd389aadd65f0f179d395 (patch)
treed83d697f60126f5b10992dca550751e2182778d9 /spec/factories/project_hooks.rb
parent40c38644a88b8f5e88e6fd3317421206d8ee851e (diff)
Backported minimal safewebhook implementation to GitLab CE
Diffstat (limited to 'spec/factories/project_hooks.rb')
-rw-r--r--spec/factories/project_hooks.rb4
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