summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-04-06 10:11:31 +0000
committerRémy Coutable <remy@rymai.me>2017-04-06 10:11:31 +0000
commitd7e3f2322fd0ad632687f2f27a1cf2aac5474ac9 (patch)
tree43be97aec914f2331f262f4de9c542fd93c84406 /spec/factories
parent38c90cdcacaa9a75944aced2eede8fe9c7224040 (diff)
parent4865a7ab92bd74f6376d50be4dd3b2e3937c5841 (diff)
downloadgitlab-ce-d7e3f2322fd0ad632687f2f27a1cf2aac5474ac9.tar.gz
Merge branch '30021-api-deploy_keys-can_push-is-not-honoured' into 'master'
Enable creation of deploy keys with write access via the API Closes #30021 See merge request !10488
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/keys.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories/keys.rb b/spec/factories/keys.rb
index dd93b439b2b..4e140102492 100644
--- a/spec/factories/keys.rb
+++ b/spec/factories/keys.rb
@@ -23,5 +23,9 @@ FactoryGirl.define do
factory :another_deploy_key, class: 'DeployKey' do
end
end
+
+ factory :write_access_key, class: 'DeployKey' do
+ can_push true
+ end
end
end